Skip to content

Commit a63ab94

Browse files
author
Al Viro
committed
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: Al Viro <viro@zeniv.linux.org.uk>
1 parent 6b41995 commit a63ab94

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎fs/logfs/dir.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,6 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry,
555555
return __logfs_create(dir, dentry, inode, target, destlen);
556556
}
557557

558-
static int logfs_permission(struct inode *inode, int mask, unsigned int flags)
559-
{
560-
if (flags & IPERM_FLAG_RCU)
561-
return -ECHILD;
562-
return generic_permission(inode, mask, flags, NULL);
563-
}
564-
565558
static int logfs_link(struct dentry *old_dentry, struct inode *dir,
566559
struct dentry *dentry)
567560
{
@@ -820,7 +813,6 @@ const struct inode_operations logfs_dir_iops = {
820813
.mknod = logfs_mknod,
821814
.rename = logfs_rename,
822815
.rmdir = logfs_rmdir,
823-
.permission = logfs_permission,
824816
.symlink = logfs_symlink,
825817
.unlink = logfs_unlink,
826818
};

0 commit comments

Comments
 (0)