]> err.no Git - linux-2.6/blobdiff - mm/mempolicy.c
[PATCH] Add __GFP_THISNODE to avoid fallback to other nodes and ignore cpuset/memory...
[linux-2.6] / mm / mempolicy.c
index c3429a710ab1868ee5323367780e7ef88fb260da..8002e1faccdafb19df2aa7dbf3c32930324097a2 100644 (file)
@@ -1290,7 +1290,7 @@ struct page *alloc_pages_current(gfp_t gfp, unsigned order)
 
        if ((gfp & __GFP_WAIT) && !in_interrupt())
                cpuset_update_task_memory_state();
-       if (!pol || in_interrupt())
+       if (!pol || in_interrupt() || (gfp & __GFP_THISNODE))
                pol = &default_policy;
        if (pol->policy == MPOL_INTERLEAVE)
                return alloc_page_interleave(gfp, order, interleave_nodes(pol));