nfsd: use vfs_fsync for non-directories
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Dec 2009 16:45:13 +0000 (17:45 +0100)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 13 Jan 2010 14:42:26 +0000 (09:42 -0500)
commit6a68f89ee1f2d177af4a5410fa7a45734c975fd6
tree1a462b27a4d783d1b6a368bf6cf9c7970f93b8ae
parentde3cab793c6a5c8505d66bee111edcc7098380ba
nfsd: use vfs_fsync for non-directories

Instead of opencoding the fsync calling sequence use vfs_fsync.  This also
gets rid of the useless i_mutex over the data writeout.

Consolidate the remaining special code for syncing directories and document
it's quirks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/vfs.c