From: Andrew Morton Date: Wed, 26 Sep 2012 01:33:57 +0000 (+1000) Subject: mm-numa-reclaim-from-all-nodes-within-reclaim-distance-fix X-Git-Tag: next-20120927~1^2~205 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=09983194aba8491205164e2abd14777823d762f8;p=karo-tx-linux.git mm-numa-reclaim-from-all-nodes-within-reclaim-distance-fix fix CONFIG_NUMA=n build Cc: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Cc: Minchan Kim Signed-off-by: Andrew Morton --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7444cb37fbdc..e980363d0b5c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4557,7 +4557,9 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size, for_each_online_node(i) if (node_distance(nid, i) <= RECLAIM_DISTANCE) { node_set(i, pgdat->reclaim_nodes); +#ifdef CONFIG_NUMA zone_reclaim_mode = 1; +#endif } calculate_node_totalpages(pgdat, zones_size, zholes_size);