|
@@ -1870,7 +1870,7 @@ static void __paginginit init_zone_allows_reclaim(int nid)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- for_each_online_node(i)
|
|
|
|
|
|
+ for_each_node_state(i, N_MEMORY)
|
|
if (node_distance(nid, i) <= RECLAIM_DISTANCE)
|
|
if (node_distance(nid, i) <= RECLAIM_DISTANCE)
|
|
node_set(i, NODE_DATA(nid)->reclaim_nodes);
|
|
node_set(i, NODE_DATA(nid)->reclaim_nodes);
|
|
else
|
|
else
|
|
@@ -4919,7 +4919,8 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
|
|
|
|
|
|
pgdat->node_id = nid;
|
|
pgdat->node_id = nid;
|
|
pgdat->node_start_pfn = node_start_pfn;
|
|
pgdat->node_start_pfn = node_start_pfn;
|
|
- init_zone_allows_reclaim(nid);
|
|
|
|
|
|
+ if (node_state(nid, N_MEMORY))
|
|
|
|
+ init_zone_allows_reclaim(nid);
|
|
#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
|
|
#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
|
|
get_pfn_range_for_nid(nid, &start_pfn, &end_pfn);
|
|
get_pfn_range_for_nid(nid, &start_pfn, &end_pfn);
|
|
#endif
|
|
#endif
|