diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:11 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:33:03 -0400 |
commit | ab96291ea16b6b9c76bfac35ccbb26a15ecb01ce (patch) | |
tree | 46c37d231ad4fc4d7443c494c299a5bd76560145 /fs/nfs/dir.c | |
parent | 597d92891b8859b4b4949fd08e25e60fc80ddaaf (diff) |
NFS: Split out NFS v3 inode operations
This patch moves the NFS v3 file and directory inode functions into
files that are only compiled whet CONFIG_NFS_V3 is enabled.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 9ae329d62340..e75f2aaafadf 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -63,27 +63,6 @@ const struct address_space_operations nfs_dir_aops = { | |||
63 | .freepage = nfs_readdir_clear_array, | 63 | .freepage = nfs_readdir_clear_array, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | #ifdef CONFIG_NFS_V3 | ||
67 | const struct inode_operations nfs3_dir_inode_operations = { | ||
68 | .create = nfs_create, | ||
69 | .lookup = nfs_lookup, | ||
70 | .link = nfs_link, | ||
71 | .unlink = nfs_unlink, | ||
72 | .symlink = nfs_symlink, | ||
73 | .mkdir = nfs_mkdir, | ||
74 | .rmdir = nfs_rmdir, | ||
75 | .mknod = nfs_mknod, | ||
76 | .rename = nfs_rename, | ||
77 | .permission = nfs_permission, | ||
78 | .getattr = nfs_getattr, | ||
79 | .setattr = nfs_setattr, | ||
80 | .listxattr = nfs3_listxattr, | ||
81 | .getxattr = nfs3_getxattr, | ||
82 | .setxattr = nfs3_setxattr, | ||
83 | .removexattr = nfs3_removexattr, | ||
84 | }; | ||
85 | #endif /* CONFIG_NFS_V3 */ | ||
86 | |||
87 | #ifdef CONFIG_NFS_V4 | 66 | #ifdef CONFIG_NFS_V4 |
88 | 67 | ||
89 | static int nfs_atomic_open(struct inode *, struct dentry *, | 68 | static int nfs_atomic_open(struct inode *, struct dentry *, |