Skip to content

Commit 9870246

Browse files
liewegasAl Viro
authored and
Al Viro
committed
configfs: remove unnecessary dentry_unhash on rmdir, dir rename
configfs does not have problems with references to unlinked directories. CC: Joel Becker <[email protected]> Signed-off-by: Sage Weil <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent f4ff0e2 commit 9870246

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/configfs/dir.c

-2
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,6 @@ static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
13591359
struct module *subsys_owner = NULL, *dead_item_owner = NULL;
13601360
int ret;
13611361

1362-
dentry_unhash(dentry);
1363-
13641362
if (dentry->d_parent == configfs_sb->s_root)
13651363
return -EPERM;
13661364

0 commit comments

Comments
 (0)