nfsd: open a file descriptor for fsync in nfs4 recovery
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Mar 2010 16:32:14 +0000 (17:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:21 +0000 (18:31 -0400)
commite970a573ce30a3976234dcfb67906c164b0df9ee
tree767cbc42caf0956c0251efb23828cfdf6a8a48c9
parent2e147f1ef7d593b36c0e27a393b7d7ec0765f54b
nfsd: open a file descriptor for fsync in nfs4 recovery

Instead of just looking up a path use do_filp_open to get us a file
structure for the nfs4 recovery directory.  This allows us to get
rid of the last non-standard vfs_fsync caller with a NULL file
pointer.

[AV: should be using fput(), not filp_close()]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfsd/nfs4recover.c