|
@@ -4642,8 +4642,10 @@ static void check_for_regular_memory(pg_data_t *pgdat)
|
|
|
|
|
|
for (zone_type = 0; zone_type <= ZONE_NORMAL; zone_type++) {
|
|
for (zone_type = 0; zone_type <= ZONE_NORMAL; zone_type++) {
|
|
struct zone *zone = &pgdat->node_zones[zone_type];
|
|
struct zone *zone = &pgdat->node_zones[zone_type];
|
|
- if (zone->present_pages)
|
|
|
|
|
|
+ if (zone->present_pages) {
|
|
node_set_state(zone_to_nid(zone), N_NORMAL_MEMORY);
|
|
node_set_state(zone_to_nid(zone), N_NORMAL_MEMORY);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|