]> granicus.if.org Git - zfs/commitdiff
Remove dir inode operations from zpl_inode_operations
authorChunwei Chen <david.chen@osnexus.com>
Wed, 19 Oct 2016 18:12:20 +0000 (11:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Oct 2016 16:39:09 +0000 (09:39 -0700)
These operations are dir specific, there's no point putting them in
zpl_inode_operations which is for regular files.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
module/zfs/zpl_inode.c

index b7ac4649c1a16a6f405794cc877a014acf9f216f..d26193ffa5b355204fdec901ab5566a424a8185c 100644 (file)
@@ -649,14 +649,6 @@ zpl_revalidate(struct dentry *dentry, unsigned int flags)
 }
 
 const struct inode_operations zpl_inode_operations = {
-       .create         = zpl_create,
-       .link           = zpl_link,
-       .unlink         = zpl_unlink,
-       .symlink        = zpl_symlink,
-       .mkdir          = zpl_mkdir,
-       .rmdir          = zpl_rmdir,
-       .mknod          = zpl_mknod,
-       .rename         = zpl_rename,
        .setattr        = zpl_setattr,
        .getattr        = zpl_getattr,
        .setxattr       = generic_setxattr,