Skip to content

Commit

Permalink
logfs doesn't need ->permission() at all
Browse files Browse the repository at this point in the history
... and never did, what with its ->permission() being what we do by default
when ->permission is NULL...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent 6b41995 commit a63ab94
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fs/logfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,6 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry,
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,
struct dentry *dentry)
{
Expand Down Expand Up @@ -820,7 +813,6 @@ const struct inode_operations logfs_dir_iops = {
.mknod = logfs_mknod,
.rename = logfs_rename,
.rmdir = logfs_rmdir,
.permission = logfs_permission,
.symlink = logfs_symlink,
.unlink = logfs_unlink,
};
Expand Down

0 comments on commit a63ab94

Please sign in to comment.