diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-07 03:10:15 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-07 03:10:15 +0100 |
commit | 93939f4e5df30e6229a0b5257fdcaf3faf88471c (patch) | |
tree | f30acb3e4a35ea96b342f3b1dd25700e7b531def /fs | |
parent | Merge branch 'davinci-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | sunrpc: fix peername failed on closed listener (diff) | |
download | linux-93939f4e5df30e6229a0b5257fdcaf3faf88471c.tar.xz linux-93939f4e5df30e6229a0b5257fdcaf3faf88471c.zip |
Merge branch 'for-2.6.33' of git://linux-nfs.org/~bfields/linux
* 'for-2.6.33' of git://linux-nfs.org/~bfields/linux:
sunrpc: fix peername failed on closed listener
nfsd: make sure data is on disk before calling ->fsync
nfsd: fix "insecure" export option
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/vfs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 7c2e337d05af..c194793b642b 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -780,12 +780,9 @@ static inline int nfsd_dosync(struct file *filp, struct dentry *dp, int (*fsync) (struct file *, struct dentry *, int); int err; - err = filemap_fdatawrite(inode->i_mapping); + err = filemap_write_and_wait(inode->i_mapping); if (err == 0 && fop && (fsync = fop->fsync)) err = fsync(filp, dp, 0); - if (err == 0) - err = filemap_fdatawait(inode->i_mapping); - return err; } |