aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2012-11-28 11:23:07 -0500
committerPekka Enberg <penberg@kernel.org>2012-12-11 05:14:27 -0500
commit45530c4474d258b822e2639c786606d8257aad8b (patch)
tree87b6569f777987037c490b9660826a02e17e228d /mm/slab.h
parent3c58346525d82625e68e24f071804c2dc057b6f4 (diff)
mm, sl[au]b: create common functions for boot slab creation
Use a special function to create kmalloc caches and use that function in SLAB and SLUB. Acked-by: Joonsoo Kim <js1304@gmail.com> Reviewed-by: Glauber Costa <glommer@parallels.com> Acked-by: David Rientjes <rientjes@google.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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 66a62d3536c6..492eafa0b538 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -35,6 +35,11 @@ extern struct kmem_cache *kmem_cache;
35/* Functions provided by the slab allocators */ 35/* Functions provided by the slab allocators */
36extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags); 36extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags);
37 37
38extern struct kmem_cache *create_kmalloc_cache(const char *name, size_t size,
39 unsigned long flags);
40extern void create_boot_cache(struct kmem_cache *, const char *name,
41 size_t size, unsigned long flags);
42
38#ifdef CONFIG_SLUB 43#ifdef CONFIG_SLUB
39struct kmem_cache *__kmem_cache_alias(const char *name, size_t size, 44struct kmem_cache *__kmem_cache_alias(const char *name, size_t size,
40 size_t align, unsigned long flags, void (*ctor)(void *)); 45 size_t align, unsigned long flags, void (*ctor)(void *));