public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.19-rc3] VFS: extra check inside dentry_unhash()
@ 2006-11-01 10:37 Vasily Averin
  0 siblings, 0 replies; only message in thread
From: Vasily Averin @ 2006-11-01 10:37 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Andrew Morton, Jan Blunck,
	Alexander Viro; +Cc: devel

From:	Vasily Averin <vvs@sw.ru>

d_count check after dget() is always true

Signed-off-by:	Vasily Averin <vvs@sw.ru>

--- linux-2.6.19-rc3-mm1/fs/namei.c.duhsh	2006-10-30 14:20:19.000000000 +0300
+++ linux-2.6.19-rc3-mm1/fs/namei.c	2006-11-01 13:17:17.000000000 +0300
@@ -1993,8 +1993,7 @@ asmlinkage long sys_mkdir(const char __u
 void dentry_unhash(struct dentry *dentry)
 {
 	dget(dentry);
-	if (atomic_read(&dentry->d_count))
-		shrink_dcache_parent(dentry);
+	shrink_dcache_parent(dentry);
 	spin_lock(&dcache_lock);
 	spin_lock(&dentry->d_lock);
 	if (atomic_read(&dentry->d_count) == 2)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-01 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 10:37 [PATCH 2.6.19-rc3] VFS: extra check inside dentry_unhash() Vasily Averin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox