]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-numa-reclaim-from-all-nodes-within-reclaim-distance-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Sep 2012 00:19:55 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:49:36 +0000 (16:49 +1000)
fix CONFIG_NUMA=n build

Cc: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index cc253095d9145ef070addfbcf34a420b644982c4..e6b99adf7d157731970d144173a0c8a006e31987 100644 (file)
@@ -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);