diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-07-07 20:59:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:24:07 -0400 |
commit | a6ccbbb8865101d83c2e716f08feae1da1c48584 (patch) | |
tree | 0b55b0673704dcae39d614cb1495cf47590628fb /fs/nfsd/vfs.c | |
parent | 463090294e1e460cf97f5ade376d4b1e62bc5263 (diff) |
[PATCH] nfsd4: fix sync'ing of recovery directory
We need to fsync the recovery directory after writing to it, but we weren't
doing this correctly. (For example, we weren't taking the i_sem when calling
->fsync().)
Just reuse the existing nfsd fsync code instead.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index be24ead89d94..5e0bf3917607 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -733,7 +733,7 @@ nfsd_sync(struct file *filp) | |||
733 | up(&inode->i_sem); | 733 | up(&inode->i_sem); |
734 | } | 734 | } |
735 | 735 | ||
736 | static void | 736 | void |
737 | nfsd_sync_dir(struct dentry *dp) | 737 | nfsd_sync_dir(struct dentry *dp) |
738 | { | 738 | { |
739 | nfsd_dosync(NULL, dp, dp->d_inode->i_fop); | 739 | nfsd_dosync(NULL, dp, dp->d_inode->i_fop); |