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/slab_common.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/slab_common.c')
-rw-r--r-- | mm/slab_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index a1c4f0b5aaed..5374150f5486 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c | |||
@@ -22,6 +22,7 @@ | |||
22 | enum slab_state slab_state; | 22 | enum slab_state slab_state; |
23 | LIST_HEAD(slab_caches); | 23 | LIST_HEAD(slab_caches); |
24 | DEFINE_MUTEX(slab_mutex); | 24 | DEFINE_MUTEX(slab_mutex); |
25 | struct kmem_cache *kmem_cache; | ||
25 | 26 | ||
26 | #ifdef CONFIG_DEBUG_VM | 27 | #ifdef CONFIG_DEBUG_VM |
27 | static int kmem_cache_sanity_check(const char *name, size_t size) | 28 | static int kmem_cache_sanity_check(const char *name, size_t size) |