提交 7ac6cd65 编写于 作者: M Miklos Szeredi 提交者: Al Viro

[patch] hppfs: remove hppfs_permission

hppfs_permission() is equivalent to the '.permission == NULL' case.
Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 d2d9648e
...@@ -655,20 +655,13 @@ static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -655,20 +655,13 @@ static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
return proc_dentry->d_inode->i_op->follow_link(proc_dentry, nd); return proc_dentry->d_inode->i_op->follow_link(proc_dentry, nd);
} }
int hppfs_permission(struct inode *inode, int mask, struct nameidata *nd)
{
return generic_permission(inode, mask, NULL);
}
static const struct inode_operations hppfs_dir_iops = { static const struct inode_operations hppfs_dir_iops = {
.lookup = hppfs_lookup, .lookup = hppfs_lookup,
.permission = hppfs_permission,
}; };
static const struct inode_operations hppfs_link_iops = { static const struct inode_operations hppfs_link_iops = {
.readlink = hppfs_readlink, .readlink = hppfs_readlink,
.follow_link = hppfs_follow_link, .follow_link = hppfs_follow_link,
.permission = hppfs_permission,
}; };
static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) static struct inode *get_inode(struct super_block *sb, struct dentry *dentry)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册