diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -2289,15 +2289,7 @@ static noinline struct kmem_cache *dma_kmalloc_cache(int index, gfp_t flags) | |||
2289 | if (!x) | 2289 | if (!x) |
2290 | panic("Unable to allocate memory for dma cache\n"); | 2290 | panic("Unable to allocate memory for dma cache\n"); |
2291 | 2291 | ||
2292 | if (index <= KMALLOC_SHIFT_HIGH) | 2292 | realsize = kmalloc_caches[index].objsize; |
2293 | realsize = 1 << index; | ||
2294 | else { | ||
2295 | if (index == 1) | ||
2296 | realsize = 96; | ||
2297 | else | ||
2298 | realsize = 192; | ||
2299 | } | ||
2300 | |||
2301 | text = kasprintf(flags & ~SLUB_DMA, "kmalloc_dma-%d", | 2293 | text = kasprintf(flags & ~SLUB_DMA, "kmalloc_dma-%d", |
2302 | (unsigned int)realsize); | 2294 | (unsigned int)realsize); |
2303 | s = create_kmalloc_cache(x, text, realsize, flags); | 2295 | s = create_kmalloc_cache(x, text, realsize, flags); |