dma kmalloc handling fixes
authorChristoph Lameter <[email protected]>
Thu, 21 Jan 2010 23:43:35 +0000 (17:43 -0600)
committerPekka Enberg <[email protected]>
Fri, 22 Jan 2010 16:33:38 +0000 (18:33 +0200)
commit91efd773c74bb26b5409c85ad755d536448e229c
treeb812dadb615ecff08e4d3ebe97483f192d0be27d
parent7738dd9e8f2bc1c249e00c9c20e018448fac0084
dma kmalloc handling fixes

1. We need kmalloc_percpu for all of the now extended kmalloc caches
   array not just for each shift value.

2. init_kmem_cache_nodes() must assume node 0 locality for statically
   allocated dma kmem_cache structures even after boot is complete.

Reported-and-tested-by: Alex Chiang <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
mm/slub.c