Unionfs: implement native unionfs_fsync/unionfs_fasync methods
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 22 Jul 2007 03:56:16 +0000 (23:56 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 19:19:42 +0000 (14:19 -0500)
commit2f82841600465e323a362e03a75b7ba640aa27d1
treed8607c23bf54bb55d9c4f0d78124e515603964c0
parenta5481a0880afc5e42cbdbaabc507263acabedb82
Unionfs: implement native unionfs_fsync/unionfs_fasync methods

Unionfs is not a block-based file system, but it has to work with both
block-based file systems and non-block-based ones (i.e., when
CONFIG_BLOCK=n).  We used to define our ->fsync method to file_fsync, but
that's wrong because file_fsync partially depends on CONFIG_BLOCK=y.  And we
didn't define an fasync method: now we have both.  Moreover, at best,
file_fsync would have caused unionfs to sync up one lower branch---but as a
fanout file system, we need to sync up all valid lower branches.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Conflicts:

fs/unionfs/file.c
fs/unionfs/dirfops.c
fs/unionfs/file.c
fs/unionfs/union.h