From: Christoph Lameter Date: Tue, 4 Mar 2008 20:24:22 +0000 (-0800) Subject: slab numa fallback logic: Do not pass unfiltered flags to page allocator X-Git-Tag: v2.6.25-rc5~9^2~4 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=9ac33b2b749e9539e84bbb1a41f97b066c4bd757 slab numa fallback logic: Do not pass unfiltered flags to page allocator The NUMA fallback logic should be passing local_flags to kmem_get_pages() and not simply the flags passed in. Reviewed-by: Pekka Enberg Signed-off-by: Christoph Lameter --- diff --git a/mm/slab.c b/mm/slab.c index 473e6c2..5d16c8a 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3280,7 +3280,7 @@ retry: if (local_flags & __GFP_WAIT) local_irq_enable(); kmem_flagcheck(cache, flags); - obj = kmem_getpages(cache, flags, -1); + obj = kmem_getpages(cache, local_flags, -1); if (local_flags & __GFP_WAIT) local_irq_disable(); if (obj) {