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-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ac33b2b749e9539e84bbb1a41f97b066c4bd757;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 473e6c2eaefb..5d16c8a30499 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) {