+ vfs-extra-check-inside-dentry_unhash.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     VFS: extra check inside dentry_unhash()
has been added to the -mm tree.  Its filename is
     vfs-extra-check-inside-dentry_unhash.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: VFS: extra check inside dentry_unhash()
From: Vasily Averin <vvs@xxxxx>

d_count check after dget() is always true.

Signed-off-by:	Vasily Averin <vvs@xxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/namei.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN fs/namei.c~vfs-extra-check-inside-dentry_unhash fs/namei.c
--- a/fs/namei.c~vfs-extra-check-inside-dentry_unhash
+++ a/fs/namei.c
@@ -1998,8 +1998,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)
_

Patches currently in -mm which might be from vvs@xxxxx are

vfs-bkl-is-not-required-for-remount_fs.patch
vfs-extra-check-inside-dentry_unhash.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux