diff options
author | Christoph Lameter <cl@linux.com> | 2012-09-04 20:20:33 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-09-05 05:00:36 -0400 |
commit | 9b030cb865f137e1574596983face2a07e41e8b2 (patch) | |
tree | 51caca89688beefd5ba910069d5c5754140906ae /mm/slob.c | |
parent | 945cf2b6199be70ff03102b9e642c3bb05d01de9 (diff) |
mm/sl[aou]b: Use "kmem_cache" name for slab cache with kmem_cache struct
Make all allocators use the "kmem_cache" slabname for the "kmem_cache"
structure.
Reviewed-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -622,8 +622,16 @@ int kmem_cache_shrink(struct kmem_cache *d) | |||
622 | } | 622 | } |
623 | EXPORT_SYMBOL(kmem_cache_shrink); | 623 | EXPORT_SYMBOL(kmem_cache_shrink); |
624 | 624 | ||
625 | struct kmem_cache kmem_cache_boot = { | ||
626 | .name = "kmem_cache", | ||
627 | .size = sizeof(struct kmem_cache), | ||
628 | .flags = SLAB_PANIC, | ||
629 | .align = ARCH_KMALLOC_MINALIGN, | ||
630 | }; | ||
631 | |||
625 | void __init kmem_cache_init(void) | 632 | void __init kmem_cache_init(void) |
626 | { | 633 | { |
634 | kmem_cache = &kmem_cache_boot; | ||
627 | slab_state = UP; | 635 | slab_state = UP; |
628 | } | 636 | } |
629 | 637 | ||