dma kmalloc handling fixes
authorChristoph Lameter <cl@linux-foundation.org>
Thu, 21 Jan 2010 23:43:35 +0000 (17:43 -0600)
committerPekka Enberg <penberg@cs.helsinki.fi>
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 <achiang@hp.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c