]> 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, 21 Sep 2012 01:01:41 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:59 +0000 (15:58 +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 ca44d1ef56d35af508f3ad1c75551b9be06c3ab8..fff3cd0bc123192b0cc27fb134b670d4ea3ecc58 100644 (file)
@@ -4561,7 +4561,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);