summaryrefslogtreecommitdiff
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-31 20:30:59 +0900
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-31 20:30:59 +0900
commit89c122236e60747f920008c9cf4e9cbde3333e50 (patch)
treef43cf6740b16385a37045473127dc96ae26a6120 /fs/autofs4/root.c
parent339dedf709e21d5718d6596750166f70e8bed40a (diff)
parentc7427d23f7ed695ac226dbe3a84d7f19091d34ce (diff)
downloadlinux-89c122236e60747f920008c9cf4e9cbde3333e50.tar.gz
linux-89c122236e60747f920008c9cf4e9cbde3333e50.tar.bz2
linux-89c122236e60747f920008c9cf4e9cbde3333e50.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: autofs4: bogus dentry_unhash() added in ->unlink() vfs: shrink_dcache_parent before rmdir, dir rename
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r--fs/autofs4/root.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 87d95a8cddbc..f55ae23b137e 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -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)