From: Vlastimil Babka Date: Tue, 8 Sep 2015 22:03:56 +0000 (-0700) Subject: mm: use numa_mem_id() in alloc_pages_node() X-Git-Tag: omap-for-v4.3/fixes-rc1~54^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82c1fc714763b823169958a98196d9be56c63b30;p=pandora-kernel.git mm: use numa_mem_id() in alloc_pages_node() alloc_pages_node() might fail when called with NUMA_NO_NODE and __GFP_THISNODE on a CPU belonging to a memoryless node. To make the local-node fallback more robust and prevent such situations, use numa_mem_id(), which was introduced for similar scenarios in the slab context. Suggested-by: Christoph Lameter Signed-off-by: Vlastimil Babka Acked-by: David Rientjes Acked-by: Mel Gorman Acked-by: Christoph Lameter Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed