diff options
Diffstat (limited to 'fs/nfs/delegation.h')
-rw-r--r-- | fs/nfs/delegation.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/nfs/delegation.h b/fs/nfs/delegation.h index 5e9f40e0a7d8..c772bab12eea 100644 --- a/fs/nfs/delegation.h +++ b/fs/nfs/delegation.h | |||
@@ -20,12 +20,16 @@ struct nfs_delegation { | |||
20 | int type; | 20 | int type; |
21 | loff_t maxsize; | 21 | loff_t maxsize; |
22 | __u64 change_attr; | 22 | __u64 change_attr; |
23 | #define NFS_DELEGATION_NEED_RECLAIM 0 | ||
24 | unsigned long flags; | 23 | unsigned long flags; |
25 | spinlock_t lock; | 24 | spinlock_t lock; |
26 | struct rcu_head rcu; | 25 | struct rcu_head rcu; |
27 | }; | 26 | }; |
28 | 27 | ||
28 | enum { | ||
29 | NFS_DELEGATION_NEED_RECLAIM = 0, | ||
30 | NFS_DELEGATION_RETURN, | ||
31 | }; | ||
32 | |||
29 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); | 33 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); |
30 | void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); | 34 | void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); |
31 | int nfs_inode_return_delegation(struct inode *inode); | 35 | int nfs_inode_return_delegation(struct inode *inode); |
@@ -33,7 +37,7 @@ int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *s | |||
33 | void nfs_inode_return_delegation_noreclaim(struct inode *inode); | 37 | void nfs_inode_return_delegation_noreclaim(struct inode *inode); |
34 | 38 | ||
35 | struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle); | 39 | struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle); |
36 | void nfs_return_all_delegations(struct super_block *sb); | 40 | void nfs_super_return_all_delegations(struct super_block *sb); |
37 | void nfs_expire_all_delegations(struct nfs_client *clp); | 41 | void nfs_expire_all_delegations(struct nfs_client *clp); |
38 | void nfs_handle_cb_pathdown(struct nfs_client *clp); | 42 | void nfs_handle_cb_pathdown(struct nfs_client *clp); |
39 | 43 | ||