aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 61f99c1967d9..db1bca26d88c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1998,8 +1998,7 @@ asmlinkage long sys_mkdir(const char __user *pathname, int mode)
1998void dentry_unhash(struct dentry *dentry) 1998void dentry_unhash(struct dentry *dentry)
1999{ 1999{
2000 dget(dentry); 2000 dget(dentry);
2001 if (atomic_read(&dentry->d_count)) 2001 shrink_dcache_parent(dentry);
2002 shrink_dcache_parent(dentry);
2003 spin_lock(&dcache_lock); 2002 spin_lock(&dcache_lock);
2004 spin_lock(&dentry->d_lock); 2003 spin_lock(&dentry->d_lock);
2005 if (atomic_read(&dentry->d_count) == 2) 2004 if (atomic_read(&dentry->d_count) == 2)