From: Christoph Hellwig Date: Sun, 17 Aug 2014 12:40:00 +0000 (-0500) Subject: nfsd: make find_any_file available outside nfs4state.c X-Git-Tag: v4.14-rc1~5830^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d227fca1b32f95f1246894ebef879efccb2ec15;p=platform%2Fkernel%2Flinux-rpi.git nfsd: make find_any_file available outside nfs4state.c Signed-off-by: Christoph Hellwig --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index f5fc5d7..eefd29e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -342,7 +342,7 @@ find_readable_file(struct nfs4_file *f) return ret; } -static struct file * +struct file * find_any_file(struct nfs4_file *f) { struct file *ret; diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 8bc961e..38ebb12 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -579,6 +579,7 @@ static inline void get_nfs4_file(struct nfs4_file *fi) { atomic_inc(&fi->fi_ref); } +struct file *find_any_file(struct nfs4_file *f); /* grace period management */ void nfsd4_end_grace(struct nfsd_net *nn);