--- mm/slub.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) Index: slub/mm/slub.c =================================================================== --- slub.orig/mm/slub.c 2007-06-04 16:05:27.000000000 -0700 +++ slub/mm/slub.c 2007-06-04 16:15:21.000000000 -0700 @@ -2261,14 +2261,7 @@ static struct kmem_cache *get_slab(size_ if (!x) panic("Unable to allocate memory for dma cache\n"); - if (index <= KMALLOC_SHIFT_HIGH) - realsize = 1 << index; - else { - if (index == 1) - realsize = 96; - else - realsize = 192; - } + realsize = kmalloc_caches[index].objsize; text = kasprintf(flags & ~SLUB_DMA, "kmalloc_dma-%d", (unsigned int)realsize);