aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2012-09-04 20:20:34 -0400
committerPekka Enberg <penberg@kernel.org>2012-09-05 05:00:36 -0400
commit278b1bb1313664d4999a7f7d47a8a8d964862d02 (patch)
tree65e05bc30338a24fd4afd4c4e8b49b8d3e002218 /mm/slab.h
parent96d17b7be0a9849d381442030886211dbb2a7061 (diff)
mm/sl[aou]b: Move kmem_cache allocations into common code
Shift the allocations to common code. That way the allocation and freeing of the kmem_cache structures is handled by common code. Reviewed-by: Glauber Costa <glommer@parallels.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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.h b/mm/slab.h
index ec7b94429b99..077b07a24efe 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -33,8 +33,8 @@ extern struct list_head slab_caches;
33extern struct kmem_cache *kmem_cache; 33extern struct kmem_cache *kmem_cache;
34 34
35/* Functions provided by the slab allocators */ 35/* Functions provided by the slab allocators */
36struct kmem_cache *__kmem_cache_create(const char *name, size_t size, 36extern int __kmem_cache_create(struct kmem_cache *, const char *name,
37 size_t align, unsigned long flags, void (*ctor)(void *)); 37 size_t size, size_t align, unsigned long flags, void (*ctor)(void *));
38 38
39#ifdef CONFIG_SLUB 39#ifdef CONFIG_SLUB
40struct kmem_cache *__kmem_cache_alias(const char *name, size_t size, 40struct kmem_cache *__kmem_cache_alias(const char *name, size_t size,