]> Git Repo - linux.git/commit
mm/slab_common: support the slub_debug boot option on specific object size
authorGavin Guo <[email protected]>
Wed, 24 Jun 2015 23:55:54 +0000 (16:55 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Jun 2015 00:49:40 +0000 (17:49 -0700)
commit4066c33d0308f87e9a3b0c7fafb9141c0bfbfa77
treea04cdc023db6cd938769617b44a398584219e2b0
parent3693a84d3b8b2fd4db1f1b22f33793eb84a66420
mm/slab_common: support the slub_debug boot option on specific object size

The slub_debug=PU,kmalloc-xx cannot work because in the
create_kmalloc_caches() the s->name is created after the
create_kmalloc_cache() is called.  The name is NULL in the
create_kmalloc_cache() so the kmem_cache_flags() would not set the
slub_debug flags to the s->flags.  The fix here set up a kmalloc_names
string array for the initialization purpose and delete the dynamic name
creation of kmalloc_caches.

[[email protected]: s/kmalloc_names/kmalloc_info/, tweak comment text]
Signed-off-by: Gavin Guo <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/slab.h
mm/slab_common.c
This page took 0.055147 seconds and 4 git commands to generate.