diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 25c248eb7d5ff3e7a3b074f01fe9e08ad86c0911..9404b38bcdc54c507c18d763a70cc0707e3d5ead 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4642,8 +4642,10 @@ static void check_for_regular_memory(pg_data_t *pgdat) for (zone_type = 0; zone_type <= ZONE_NORMAL; 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); + break; + } } #endif }