Skip to content

Commit

Permalink
configfs: remove unnecessary dentry_unhash on rmdir, dir rename
Browse files Browse the repository at this point in the history
configfs does not have problems with references to unlinked directories.

CC: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent f4ff0e2 commit 9870246
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/configfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,6 @@ static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
struct module *subsys_owner = NULL, *dead_item_owner = NULL;
int ret;

dentry_unhash(dentry);

if (dentry->d_parent == configfs_sb->s_root)
return -EPERM;

Expand Down

0 comments on commit 9870246

Please sign in to comment.