浏览代码

[GFS2] remove gfs2_dev_iops

struct inode_operations gfs2_dev_iops is always the same as gfs2_file_iops,
since Jan 2006, when GFS2 merged into mainstream kernel.

So one of them could be removed.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Denis Cheng 17 年之前
父节点
当前提交
d83225d45d
共有 3 个文件被更改,包括 1 次插入12 次删除
  1. 1 1
      fs/gfs2/inode.c
  2. 0 10
      fs/gfs2/ops_inode.c
  3. 0 1
      fs/gfs2/ops_inode.h

+ 1 - 1
fs/gfs2/inode.c

@@ -149,7 +149,7 @@ void gfs2_set_iop(struct inode *inode)
 	} else if (S_ISLNK(mode)) {
 	} else if (S_ISLNK(mode)) {
 		inode->i_op = &gfs2_symlink_iops;
 		inode->i_op = &gfs2_symlink_iops;
 	} else {
 	} else {
-		inode->i_op = &gfs2_dev_iops;
+		inode->i_op = &gfs2_file_iops;
 	}
 	}
 
 
 	unlock_new_inode(inode);
 	unlock_new_inode(inode);

+ 0 - 10
fs/gfs2/ops_inode.c

@@ -1149,16 +1149,6 @@ const struct inode_operations gfs2_file_iops = {
 	.removexattr = gfs2_removexattr,
 	.removexattr = gfs2_removexattr,
 };
 };
 
 
-const struct inode_operations gfs2_dev_iops = {
-	.permission = gfs2_permission,
-	.setattr = gfs2_setattr,
-	.getattr = gfs2_getattr,
-	.setxattr = gfs2_setxattr,
-	.getxattr = gfs2_getxattr,
-	.listxattr = gfs2_listxattr,
-	.removexattr = gfs2_removexattr,
-};
-
 const struct inode_operations gfs2_dir_iops = {
 const struct inode_operations gfs2_dir_iops = {
 	.create = gfs2_create,
 	.create = gfs2_create,
 	.lookup = gfs2_lookup,
 	.lookup = gfs2_lookup,

+ 0 - 1
fs/gfs2/ops_inode.h

@@ -15,7 +15,6 @@
 extern const struct inode_operations gfs2_file_iops;
 extern const struct inode_operations gfs2_file_iops;
 extern const struct inode_operations gfs2_dir_iops;
 extern const struct inode_operations gfs2_dir_iops;
 extern const struct inode_operations gfs2_symlink_iops;
 extern const struct inode_operations gfs2_symlink_iops;
-extern const struct inode_operations gfs2_dev_iops;
 extern const struct file_operations gfs2_file_fops;
 extern const struct file_operations gfs2_file_fops;
 extern const struct file_operations gfs2_dir_fops;
 extern const struct file_operations gfs2_dir_fops;
 extern const struct file_operations gfs2_file_fops_nolock;
 extern const struct file_operations gfs2_file_fops_nolock;