diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:10 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:32:55 -0400 |
commit | 597d92891b8859b4b4949fd08e25e60fc80ddaaf (patch) | |
tree | c379c890a62a36b36b443cf23f81daa1605901b0 /fs/nfs/proc.c | |
parent | 6bbb4ae8ffc4eef825c8742eff1fefae69a82e41 (diff) |
NFS: Split out NFS v2 inode operations
This patch moves the NFS v2 file and directory inode functions into
files that are only compiled whet CONFIG_NFS_V2 is enabled.
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 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index c5ed1c0a8ab7..4d3356af3309 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -745,6 +745,27 @@ static int nfs_return_delegation(struct inode *inode) | |||
745 | return 0; | 745 | return 0; |
746 | } | 746 | } |
747 | 747 | ||
748 | static const struct inode_operations nfs_dir_inode_operations = { | ||
749 | .create = nfs_create, | ||
750 | .lookup = nfs_lookup, | ||
751 | .link = nfs_link, | ||
752 | .unlink = nfs_unlink, | ||
753 | .symlink = nfs_symlink, | ||
754 | .mkdir = nfs_mkdir, | ||
755 | .rmdir = nfs_rmdir, | ||
756 | .mknod = nfs_mknod, | ||
757 | .rename = nfs_rename, | ||
758 | .permission = nfs_permission, | ||
759 | .getattr = nfs_getattr, | ||
760 | .setattr = nfs_setattr, | ||
761 | }; | ||
762 | |||
763 | static const struct inode_operations nfs_file_inode_operations = { | ||
764 | .permission = nfs_permission, | ||
765 | .getattr = nfs_getattr, | ||
766 | .setattr = nfs_setattr, | ||
767 | }; | ||
768 | |||
748 | const struct nfs_rpc_ops nfs_v2_clientops = { | 769 | const struct nfs_rpc_ops nfs_v2_clientops = { |
749 | .version = 2, /* protocol version */ | 770 | .version = 2, /* protocol version */ |
750 | .dentry_ops = &nfs_dentry_operations, | 771 | .dentry_ops = &nfs_dentry_operations, |