From e5ace112dc72f7bbbeb948c9f0664168629c12d4 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 26 Sep 2012 11:33:57 +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 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); -- 2.39.5