From: Christoph Lameter Subject: SLAB: Fallback if local node has no ZONE_NORMAL memory Fallback to another node if the local node does not have ZONE_NORMAL memory. This is necessary if a node only has highmem. Signed-off-by: Christoph Lameter --- mm/slab.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: linux-2.6/mm/slab.c =================================================================== --- linux-2.6.orig/mm/slab.c 2008-01-07 21:37:34.000000000 -0800 +++ linux-2.6/mm/slab.c 2008-01-07 21:38:09.000000000 -0800 @@ -2977,7 +2977,10 @@ retry: } l3 = cachep->nodelists[node]; - BUG_ON(ac->avail > 0 || !l3); + if (!l3) + return NULL; + + BUG_ON(ac->avail > 0); spin_lock(&l3->list_lock); /* See if we can refill from the shared array */