[nacked] mm-slabc-remove-duplicated-check-of-colour_next.patch removed from -mm tree

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

 



The patch titled
     Subject: mm/slab.c: remove duplicated check of colour_next
has been removed from the -mm tree.  Its filename was
     mm-slabc-remove-duplicated-check-of-colour_next.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: Roman Lakeev <sunnyddayss@xxxxxxxxx>
Subject: mm/slab.c: remove duplicated check of colour_next

Remove check that offset greater than cachep->colour bacause this is
already checked in previous lines.

Link: http://lkml.kernel.org/r/877eqilr71.fsf@xxxxxxxxx
Signed-off-by: Roman Lakeev <sunnyddayss@xxxxxxxxx>
Acked-by: Christoph Lameter <cl@xxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Pekka Enberg <penberg@xxxxxxxxxx>
Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/slab.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff -puN mm/slab.c~mm-slabc-remove-duplicated-check-of-colour_next mm/slab.c
--- a/mm/slab.c~mm-slabc-remove-duplicated-check-of-colour_next
+++ a/mm/slab.c
@@ -2675,11 +2675,7 @@ static struct page *cache_grow_begin(str
 	if (n->colour_next >= cachep->colour)
 		n->colour_next = 0;
 
-	offset = n->colour_next;
-	if (offset >= cachep->colour)
-		offset = 0;
-
-	offset *= cachep->colour_off;
+	offset = n->colour_next * cachep->colour_off;
 
 	/* Get slab management. */
 	freelist = alloc_slabmgmt(cachep, page, offset,
_

Patches currently in -mm which might be from sunnyddayss@xxxxxxxxx are


--
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 Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux