]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
SLUB: extract dma_kmalloc_cache from get_cache.
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:24 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:01 +0000 (10:23 -0700)
commit2e443fd003d76394a8ceb78f079260478aa10710
treee67fe6e1382ec7a2f636ab09285a41620192eb9f
parent0c710013200e72b5e0bc680ff4ec6bdac53c5ce8
SLUB: extract dma_kmalloc_cache from get_cache.

The rarely used dma functionality in get_slab() makes the function too
complex.  The compiler begins to spill variables from the working set onto the
stack.  The created function is only used in extremely rare cases so make sure
that the compiler does not decide on its own to merge it back into get_slab().

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c