+ fix-quadratic-behavior-of-shrink_dcache_parent-update.patch added to -mm tree

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

 



The patch titled
     fix-quadratic-behavior-of-shrink_dcache_parent update
has been added to the -mm tree.  Its filename is
     fix-quadratic-behavior-of-shrink_dcache_parent-update.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

------------------------------------------------------
Subject: fix-quadratic-behavior-of-shrink_dcache_parent update
From: Miklos Szeredi <miklos@xxxxxxxxxx>

 o dput already checks dentry == NULL, so remove check
   from prune_one_dentry()

Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

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

diff -puN fs/dcache.c~fix-quadratic-behavior-of-shrink_dcache_parent-update fs/dcache.c
--- a/fs/dcache.c~fix-quadratic-behavior-of-shrink_dcache_parent-update
+++ a/fs/dcache.c
@@ -392,8 +392,7 @@ static void prune_one_dentry(struct dent
 	__d_drop(dentry);
 	dentry = d_kill(dentry);
 	if (!prune_parents) {
-		if (dentry)
-			dput(dentry);
+		dput(dentry);
 		spin_lock(&dcache_lock);
 		return;
 	}
_

Patches currently in -mm which might be from miklos@xxxxxxxxxx are

fix-quadratic-behavior-of-shrink_dcache_parent-update.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