diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-06-20 15:53:43 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-29 11:46:44 -0400 |
commit | 011e2a7fd5e9e0c2fdba6b9466d53fc437f8bfaf (patch) | |
tree | b88d11754a6ed0a4cea439dc43a39fb88a5b05a8 /fs/nfs/proc.c | |
parent | a5c58892b427a2752e3ec44b0aad4ce9221dc63b (diff) |
NFS: Create a have_delegation rpc_op
Delegations are a v4 feature, so push them out of the generic code.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 617c7419a08e..4aed3ddf9bba 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -734,6 +734,11 @@ out_einval: | |||
734 | return -EINVAL; | 734 | return -EINVAL; |
735 | } | 735 | } |
736 | 736 | ||
737 | static int nfs_have_delegation(struct inode *inode, fmode_t flags) | ||
738 | { | ||
739 | return 0; | ||
740 | } | ||
741 | |||
737 | const struct nfs_rpc_ops nfs_v2_clientops = { | 742 | const struct nfs_rpc_ops nfs_v2_clientops = { |
738 | .version = 2, /* protocol version */ | 743 | .version = 2, /* protocol version */ |
739 | .dentry_ops = &nfs_dentry_operations, | 744 | .dentry_ops = &nfs_dentry_operations, |
@@ -777,5 +782,6 @@ const struct nfs_rpc_ops nfs_v2_clientops = { | |||
777 | .lock = nfs_proc_lock, | 782 | .lock = nfs_proc_lock, |
778 | .lock_check_bounds = nfs_lock_check_bounds, | 783 | .lock_check_bounds = nfs_lock_check_bounds, |
779 | .close_context = nfs_close_context, | 784 | .close_context = nfs_close_context, |
785 | .have_delegation = nfs_have_delegation, | ||
780 | .init_client = nfs_init_client, | 786 | .init_client = nfs_init_client, |
781 | }; | 787 | }; |