The patch titled Subject: slub: reduce duplicate creation on the first object has been removed from the -mm tree. Its filename was slub-reduce-duplicate-creation-on-the-first-object.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ From: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Subject: slub: reduce duplicate creation on the first object When a kmem_cache is created with ctor, each object in the kmem_cache will be initialized before use. In the slub implementation, the first object will be initialized twice. This patch avoids the duplication of initialization of the first object. Fixes commit 7656c72b5a63: ("SLUB: add macros for scanning objects in a slab"). Signed-off-by: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: Pekka Enberg <penberg@xxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/slub.c~slub-reduce-duplicate-creation-on-the-first-object mm/slub.c --- a/mm/slub.c~slub-reduce-duplicate-creation-on-the-first-object +++ a/mm/slub.c @@ -1403,7 +1403,7 @@ static struct page *new_slab(struct kmem memset(start, POISON_INUSE, PAGE_SIZE << order); last = start; - for_each_object(p, s, start, page->objects) { + for_each_object(p, s, start + s->size, page->objects - 1) { setup_object(s, page, last); set_freepointer(s, last, p); last = p; _ Patches currently in -mm which might be from weiyang@xxxxxxxxxxxxxxxxxx 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