From fa38158a18c911fc2cbfebb23f58640b149e05db Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Sep 2012 10:19:55 +1000 Subject: [PATCH] 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 --- mm/page_alloc.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5