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.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.c')
-rw-r--r-- | mm/slab.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -318,14 +318,6 @@ static void free_block(struct kmem_cache *cachep, void **objpp, int len, | |||
318 | static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); | 318 | static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); |
319 | static void cache_reap(struct work_struct *unused); | 319 | static void cache_reap(struct work_struct *unused); |
320 | 320 | ||
321 | struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
322 | EXPORT_SYMBOL(kmalloc_caches); | ||
323 | |||
324 | #ifdef CONFIG_ZONE_DMA | ||
325 | struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
326 | EXPORT_SYMBOL(kmalloc_dma_caches); | ||
327 | #endif | ||
328 | |||
329 | static int slab_early_init = 1; | 321 | static int slab_early_init = 1; |
330 | 322 | ||
331 | #define INDEX_AC kmalloc_index(sizeof(struct arraycache_init)) | 323 | #define INDEX_AC kmalloc_index(sizeof(struct arraycache_init)) |