diff options
author | Christoph Hellwig <hch@lst.de> | 2014-08-14 10:50:16 +0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-02-02 20:09:41 +0300 |
commit | e6ba76e1944613f16dddcba4b5836954ed3981f3 (patch) | |
tree | bcf3851e4e91127e2722aa631225dab48680c28a /fs/nfsd/state.h | |
parent | cd61c522318f2c30ce731bfdb14e7c34203e3d7c (diff) | |
download | linux-e6ba76e1944613f16dddcba4b5836954ed3981f3.tar.xz |
nfsd: make find/get/put file available outside nfs4state.c
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 55a3ece5fe06..8bc961e192f2 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -573,6 +573,13 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(const char *name, struct nfsd_net *nn); extern bool nfs4_has_reclaimed_state(const char *name, struct nfsd_net *nn); +struct nfs4_file *find_file(struct knfsd_fh *fh); +void put_nfs4_file(struct nfs4_file *fi); +static inline void get_nfs4_file(struct nfs4_file *fi) +{ + atomic_inc(&fi->fi_ref); +} + /* grace period management */ void nfsd4_end_grace(struct nfsd_net *nn); |