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>
Sat, 16 Aug 2014 02:27:26 +0000 (22:27 -0400)
commit7d727aeeb50571aa1b686eee81a0963d81279503
tree539186929a895cc90de707d0e24a13ec82d4e2da
parent189f3336c6d9c0a241f1eda3586899a163979f60
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