Re: [RFC] Common code 04/12] slabs: Extract common code for kmem_cache_create
From: Glauber Costa <hidden>
Date: 2012-05-21 09:26:25
On 05/18/2012 08:19 PM, Christoph Lameter wrote:
quoted hunk ↗ jump to hunk
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>