From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx186.postini.com [74.125.245.186]) by kanga.kvack.org (Postfix) with SMTP id A964E6B0081 for ; Mon, 21 May 2012 05:26:25 -0400 (EDT) Message-ID: <4FBA09C6.9090302@parallels.com> Date: Mon, 21 May 2012 13:24:22 +0400 From: Glauber Costa MIME-Version: 1.0 Subject: Re: [RFC] Common code 04/12] slabs: Extract common code for kmem_cache_create References: <20120518161906.207356777@linux.com> <20120518161929.264565121@linux.com> In-Reply-To: <20120518161929.264565121@linux.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Pekka Enberg , linux-mm@kvack.org, David Rientjes , Matt Mackall , Joonsoo Kim , Alex Shi On 05/18/2012 08:19 PM, Christoph Lameter wrote: > Index: linux-2.6/mm/slab.c > =================================================================== > --- linux-2.6.orig/mm/slab.c 2012-05-11 09:36:35.308445605 -0500 > +++ linux-2.6/mm/slab.c 2012-05-11 09:43:33.160436947 -0500 > @@ -1585,7 +1585,7 @@ void __init kmem_cache_init(void) > * bug. > */ > > - sizes[INDEX_AC].cs_cachep = kmem_cache_create(names[INDEX_AC].name, > + sizes[INDEX_AC].cs_cachep = __kmem_cache_create(names[INDEX_AC].name, > sizes[INDEX_AC].cs_size, > ARCH_KMALLOC_MINALIGN, > ARCH_KMALLOC_FLAGS|SLAB_PANIC, So, before your patch, the kmalloc caches were getting all the sanity checking done. No we're skipping them. Any particular reason? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org