mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ibmasmfs: get rid of ibmasmfs_dir_ops
it is always equal (and always had been equal) to &simple_dir_operations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -97,8 +97,6 @@ static const struct super_operations ibmasmfs_s_ops = {
|
||||
.drop_inode = inode_just_drop,
|
||||
};
|
||||
|
||||
static const struct file_operations *ibmasmfs_dir_ops = &simple_dir_operations;
|
||||
|
||||
static struct file_system_type ibmasmfs_type = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "ibmasmfs",
|
||||
@@ -122,7 +120,7 @@ static int ibmasmfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
||||
return -ENOMEM;
|
||||
|
||||
root->i_op = &simple_dir_inode_operations;
|
||||
root->i_fop = ibmasmfs_dir_ops;
|
||||
root->i_fop = &simple_dir_operations;
|
||||
|
||||
sb->s_root = d_make_root(root);
|
||||
if (!sb->s_root)
|
||||
@@ -188,7 +186,7 @@ static struct dentry *ibmasmfs_create_dir(struct dentry *parent,
|
||||
}
|
||||
|
||||
inode->i_op = &simple_dir_inode_operations;
|
||||
inode->i_fop = ibmasmfs_dir_ops;
|
||||
inode->i_fop = &simple_dir_operations;
|
||||
|
||||
d_make_persistent(dentry, inode);
|
||||
dput(dentry);
|
||||
|
||||
Reference in New Issue
Block a user