autofs4: bogus dentry_unhash() added in ->unlink()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 May 2011 05:50:53 +0000 (01:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 May 2011 05:50:53 +0000 (01:50 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/root.c

index 87d95a8cddbc4223c77e9aa642292b784912b807..f55ae23b137e2a21001948e1c4b6b17795abc1b0 100644 (file)
@@ -583,8 +583,6 @@ static int autofs4_dir_unlink(struct inode *dir, struct dentry *dentry)
        if (!autofs4_oz_mode(sbi) && !capable(CAP_SYS_ADMIN))
                return -EACCES;
 
-       dentry_unhash(dentry);
-
        if (atomic_dec_and_test(&ino->count)) {
                p_ino = autofs4_dentry_ino(dentry->d_parent);
                if (p_ino && dentry->d_parent != dentry)