]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: make sure data is on disk before calling ->fsync
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Dec 2009 16:44:45 +0000 (17:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:18 +0000 (10:19 -0800)
commit3aafc557edb43aa82d9a5651f071d9dae7a2638b
treec8497492e78448532367d5078ada8e8fccd41a81
parentb7e5f77916291b3c80fdf34dd2a649d8d10138e8
nfsd: make sure data is on disk before calling ->fsync

commit 7211a4e859ad070b28545c06e0a6cb60b3b8aa31 upstream.

nfsd is not using vfs_fsync, so I missed it when changing the calling
convention during the 2.6.32 window.  This patch fixes it to not only
start the data writeout, but also wait for it to complete before calling
into ->fsync.

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