| To: | "J. Bruce Fields" <bfields@xxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 09/20] nfsd: make find_any_file available outside nfs4state.c |
| From: | Christoph Hellwig <hch@xxxxxx> |
| Date: | Thu, 22 Jan 2015 12:09:55 +0100 |
| Cc: | Jeff Layton <jlayton@xxxxxxxxxxxxxxx>, linux-nfs@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1421925006-24231-1-git-send-email-hch@xxxxxx> |
| References: | <1421925006-24231-1-git-send-email-hch@xxxxxx> |
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
fs/nfsd/nfs4state.c | 2 +-
fs/nfsd/state.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index c31b8f8..444d43c 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -352,7 +352,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 cd61e7d..18b5ab8 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);
--
1.9.1
|
| Previous by Date: | [PATCH 03/20] fs: add FL_LAYOUT lease type, Christoph Hellwig |
|---|---|
| Next by Date: | [PATCH 11/20] nfsd: implement pNFS layout recalls, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 03/20] fs: add FL_LAYOUT lease type, Christoph Hellwig |
| Next by Thread: | [PATCH 11/20] nfsd: implement pNFS layout recalls, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |