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 /include/linux/slab.h | |
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 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index c01780540054..f2327a898a85 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
@@ -206,6 +206,11 @@ struct kmem_cache { | |||
206 | #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) | 206 | #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) |
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | extern struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
210 | #ifdef CONFIG_ZONE_DMA | ||
211 | extern struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1]; | ||
212 | #endif | ||
213 | |||
209 | /* | 214 | /* |
210 | * Figure out which kmalloc slab an allocation of a certain size | 215 | * Figure out which kmalloc slab an allocation of a certain size |
211 | * belongs to. | 216 | * belongs to. |