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.h | |
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.h')
-rw-r--r-- | mm/slab.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -25,8 +25,14 @@ extern enum slab_state slab_state; | |||
25 | 25 | ||
26 | /* The slab cache mutex protects the management structures during changes */ | 26 | /* The slab cache mutex protects the management structures during changes */ |
27 | extern struct mutex slab_mutex; | 27 | extern struct mutex slab_mutex; |
28 | |||
29 | /* The list of all slab caches on the system */ | ||
28 | extern struct list_head slab_caches; | 30 | extern struct list_head slab_caches; |
29 | 31 | ||
32 | /* The slab cache that manages slab cache information */ | ||
33 | extern struct kmem_cache *kmem_cache; | ||
34 | |||
35 | /* Functions provided by the slab allocators */ | ||
30 | struct kmem_cache *__kmem_cache_create(const char *name, size_t size, | 36 | struct kmem_cache *__kmem_cache_create(const char *name, size_t size, |
31 | size_t align, unsigned long flags, void (*ctor)(void *)); | 37 | size_t align, unsigned long flags, void (*ctor)(void *)); |
32 | 38 | ||