From: Andrew Morton Date: Fri, 28 Sep 2012 00:19:55 +0000 (+1000) Subject: mm-numa-reclaim-from-all-nodes-within-reclaim-distance-fix X-Git-Tag: next-20121009~1^2~33 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8038df8a5887248219ecd820cc6832fefcbf28ac;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 cc253095d914..e6b99adf7d15 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4558,7 +4558,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);