diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 5720537bffdd..2c6a95945684 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -75,6 +75,27 @@ struct inode_operations nfs_dir_inode_operations = { | |||
75 | .setattr = nfs_setattr, | 75 | .setattr = nfs_setattr, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | #ifdef CONFIG_NFS_V3 | ||
79 | struct inode_operations nfs3_dir_inode_operations = { | ||
80 | .create = nfs_create, | ||
81 | .lookup = nfs_lookup, | ||
82 | .link = nfs_link, | ||
83 | .unlink = nfs_unlink, | ||
84 | .symlink = nfs_symlink, | ||
85 | .mkdir = nfs_mkdir, | ||
86 | .rmdir = nfs_rmdir, | ||
87 | .mknod = nfs_mknod, | ||
88 | .rename = nfs_rename, | ||
89 | .permission = nfs_permission, | ||
90 | .getattr = nfs_getattr, | ||
91 | .setattr = nfs_setattr, | ||
92 | .listxattr = nfs3_listxattr, | ||
93 | .getxattr = nfs3_getxattr, | ||
94 | .setxattr = nfs3_setxattr, | ||
95 | .removexattr = nfs3_removexattr, | ||
96 | }; | ||
97 | #endif /* CONFIG_NFS_V3 */ | ||
98 | |||
78 | #ifdef CONFIG_NFS_V4 | 99 | #ifdef CONFIG_NFS_V4 |
79 | 100 | ||
80 | static struct dentry *nfs_atomic_lookup(struct inode *, struct dentry *, struct nameidata *); | 101 | static struct dentry *nfs_atomic_lookup(struct inode *, struct dentry *, struct nameidata *); |