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 87d95a8..f55ae23 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)