OSDN Git Service

nfsd: make find_any_file available outside nfs4state.c
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Aug 2014 12:40:00 +0000 (07:40 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2015 17:09:41 +0000 (18:09 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/nfsd/nfs4state.c
fs/nfsd/state.h

index f5fc5d7..eefd29e 100644 (file)
@@ -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;
index 8bc961e..38ebb12 100644 (file)
@@ -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);