Searched refs:zone_last (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/mm/
H A Dmemory_hotplug.c892 enum zone_type zone_last = ZONE_NORMAL; node_states_check_changes_online() local
897 * set zone_last to ZONE_NORMAL. node_states_check_changes_online()
901 * 0...ZONE_MOVABLE, set zone_last to ZONE_MOVABLE. node_states_check_changes_online()
904 zone_last = ZONE_MOVABLE; node_states_check_changes_online()
907 * if the memory to be online is in a zone of 0...zone_last, and node_states_check_changes_online()
908 * the zones of 0...zone_last don't have memory before online, we will node_states_check_changes_online()
912 if (zone_idx(zone) <= zone_last && !node_state(nid, N_NORMAL_MEMORY)) node_states_check_changes_online()
921 * set zone_last to ZONE_HIGHMEM. node_states_check_changes_online()
925 * set zone_last to ZONE_MOVABLE. node_states_check_changes_online()
927 zone_last = ZONE_HIGHMEM; node_states_check_changes_online()
929 zone_last = ZONE_MOVABLE; node_states_check_changes_online()
931 if (zone_idx(zone) <= zone_last && !node_state(nid, N_HIGH_MEMORY)) node_states_check_changes_online()
1583 enum zone_type zt, zone_last = ZONE_NORMAL; node_states_check_changes_offline() local
1588 * set zone_last to ZONE_NORMAL. node_states_check_changes_offline()
1592 * 0...ZONE_MOVABLE, set zone_last to ZONE_MOVABLE. node_states_check_changes_offline()
1595 zone_last = ZONE_MOVABLE; node_states_check_changes_offline()
1599 * If the memory to be offline is in a zone of 0...zone_last, node_states_check_changes_offline()
1600 * and it is the last present memory, 0...zone_last will node_states_check_changes_offline()
1604 for (zt = 0; zt <= zone_last; zt++) node_states_check_changes_offline()
1606 if (zone_idx(zone) <= zone_last && nr_pages >= present_pages) node_states_check_changes_offline()
1615 * set zone_last to ZONE_HIGHMEM. node_states_check_changes_offline()
1619 * set zone_last to ZONE_MOVABLE. node_states_check_changes_offline()
1621 zone_last = ZONE_HIGHMEM; node_states_check_changes_offline()
1623 zone_last = ZONE_MOVABLE; node_states_check_changes_offline()
1625 for (; zt <= zone_last; zt++) node_states_check_changes_offline()
1627 if (zone_idx(zone) <= zone_last && nr_pages >= present_pages) node_states_check_changes_offline()
1638 zone_last = ZONE_MOVABLE; node_states_check_changes_offline()
1646 for (; zt <= zone_last; zt++) node_states_check_changes_offline()

Completed in 52 milliseconds