From 1d8bf0d2d65df9f820bf023b78b1a1b411bcedbd Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Mon, 7 Jan 2008 22:27:32 -0800 Subject: [PATCH] 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 files changed, 4 insertions(+), 1 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index aebb9f6..c00d549 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -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 */ -- debian.1.5.3.7.1-dirty