Commit a63ab94d authored by Al Viro's avatar Al Viro

logfs doesn't need ->permission() at all

... and never did, what with its ->permission() being what we do by default
when ->permission is NULL...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6b419951
...@@ -555,13 +555,6 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry, ...@@ -555,13 +555,6 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry,
return __logfs_create(dir, dentry, inode, target, destlen); return __logfs_create(dir, dentry, inode, target, destlen);
} }
static int logfs_permission(struct inode *inode, int mask, unsigned int flags)
{
if (flags & IPERM_FLAG_RCU)
return -ECHILD;
return generic_permission(inode, mask, flags, NULL);
}
static int logfs_link(struct dentry *old_dentry, struct inode *dir, static int logfs_link(struct dentry *old_dentry, struct inode *dir,
struct dentry *dentry) struct dentry *dentry)
{ {
...@@ -820,7 +813,6 @@ const struct inode_operations logfs_dir_iops = { ...@@ -820,7 +813,6 @@ const struct inode_operations logfs_dir_iops = {
.mknod = logfs_mknod, .mknod = logfs_mknod,
.rename = logfs_rename, .rename = logfs_rename,
.rmdir = logfs_rmdir, .rmdir = logfs_rmdir,
.permission = logfs_permission,
.symlink = logfs_symlink, .symlink = logfs_symlink,
.unlink = logfs_unlink, .unlink = logfs_unlink,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment