[PATCH] nfsd4: fix sync'ing of recovery directory
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 8 Jul 2005 00:59:11 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:24:07 +0000 (18:24 -0700)
commita6ccbbb8865101d83c2e716f08feae1da1c48584
tree0b55b0673704dcae39d614cb1495cf47590628fb
parent463090294e1e460cf97f5ade376d4b1e62bc5263
[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>
fs/nfsd/nfs4recover.c
fs/nfsd/vfs.c
include/linux/nfsd/nfsd.h