diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-06-20 15:53:44 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-29 11:46:45 -0400 |
commit | 57ec14c55dee2733330327499d16e40f8c23219e (patch) | |
tree | f375d5c2c16266a55aa1d0c9a8a9e865465f1d12 /fs/nfs/delegation.h | |
parent | 011e2a7fd5e9e0c2fdba6b9466d53fc437f8bfaf (diff) |
NFS: Create a return_delegation rpc op
Delegations are a v4 feature, so push return_delegation out of the
generic client by creating a new rpc_op and renaming the old function to
be in the nfs v4 "namespace"
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/delegation.h')
-rw-r--r-- | fs/nfs/delegation.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/nfs/delegation.h b/fs/nfs/delegation.h index d134fc5fda70..1f3ccd934635 100644 --- a/fs/nfs/delegation.h +++ b/fs/nfs/delegation.h | |||
@@ -33,7 +33,7 @@ enum { | |||
33 | 33 | ||
34 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); | 34 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); |
35 | void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); | 35 | void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); |
36 | int nfs_inode_return_delegation(struct inode *inode); | 36 | int nfs4_inode_return_delegation(struct inode *inode); |
37 | int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid); | 37 | int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid); |
38 | void nfs_inode_return_delegation_noreclaim(struct inode *inode); | 38 | void nfs_inode_return_delegation_noreclaim(struct inode *inode); |
39 | 39 | ||
@@ -58,12 +58,6 @@ bool nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode, fmode_ | |||
58 | void nfs_mark_delegation_referenced(struct nfs_delegation *delegation); | 58 | void nfs_mark_delegation_referenced(struct nfs_delegation *delegation); |
59 | int nfs4_have_delegation(struct inode *inode, fmode_t flags); | 59 | int nfs4_have_delegation(struct inode *inode, fmode_t flags); |
60 | 60 | ||
61 | #else | ||
62 | static inline int nfs_inode_return_delegation(struct inode *inode) | ||
63 | { | ||
64 | nfs_wb_all(inode); | ||
65 | return 0; | ||
66 | } | ||
67 | #endif | 61 | #endif |
68 | 62 | ||
69 | static inline int nfs_have_delegated_attributes(struct inode *inode) | 63 | static inline int nfs_have_delegated_attributes(struct inode *inode) |