diff options
author | Christoph Lameter <cl@linux.com> | 2013-01-10 14:12:17 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-02-01 05:32:07 -0500 |
commit | 9425c58e5445277699ff3c2a87bac1cfebc1b48d (patch) | |
tree | 1158c67347c53ed09cd289687abf02a5c986daee /mm/slab_common.c | |
parent | 95a05b428cc675694321c8f762591984f3fd2b1e (diff) |
slab: Common definition for the array of kmalloc caches
Have a common definition fo the kmalloc cache arrays in
SLAB and SLUB
Acked-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_common.c')
-rw-r--r-- | mm/slab_common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index 53adfbf2f3b2..0437b8189b8a 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c | |||
@@ -319,6 +319,14 @@ struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size, | |||
319 | return s; | 319 | return s; |
320 | } | 320 | } |
321 | 321 | ||
322 | struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
323 | EXPORT_SYMBOL(kmalloc_caches); | ||
324 | |||
325 | #ifdef CONFIG_ZONE_DMA | ||
326 | struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
327 | EXPORT_SYMBOL(kmalloc_dma_caches); | ||
328 | #endif | ||
329 | |||
322 | #endif /* !CONFIG_SLOB */ | 330 | #endif /* !CONFIG_SLOB */ |
323 | 331 | ||
324 | 332 | ||