Lines Matching defs:zone
191 struct zone *zone;
197 zone = zone_for_pfn_range(mem->online_type, mem->nid, mem->group,
205 * belong to the same zone as the memory they backed.
212 ret = mhp_init_memmap_on_memory(start_pfn, nr_vmemmap_pages, zone);
218 nr_pages - nr_vmemmap_pages, zone, mem->group);
226 * Account once onlining succeeded. If the zone was unpopulated, it is
233 mem->zone = zone;
249 if (!mem->zone)
253 * Unaccount before offlining, such that unpopulated zone and kthreads
265 nr_pages - nr_vmemmap_pages, mem->zone, mem->group);
277 mem->zone = NULL;
417 int online_type, struct zone *default_zone)
419 struct zone *zone;
421 zone = zone_for_pfn_range(online_type, nid, group, start_pfn, nr_pages);
422 if (zone == default_zone)
425 return sysfs_emit_at(buf, len, " %s", zone->name);
435 struct zone *default_zone;
440 * Check the existing zone. Make sure that we do that only on the
445 * If !mem->zone, the memory block spans multiple zones and
448 default_zone = mem->zone;
681 static struct zone *early_node_zone_for_memory_block(struct memory_block *mem,
686 struct zone *zone, *matching_zone = NULL;
699 zone = pgdat->node_zones + i;
700 if (!populated_zone(zone))
702 if (!zone_intersects(zone, start_pfn, nr_pages))
705 matching_zone = zone;
726 * set/adjust mem->zone based on the zone ranges of the given node.
733 * For early memory we have to determine the zone when setting
735 * memory block by indicate via zone == NULL that we're not
736 * dealing with a single zone. So if we're setting the node id
737 * the first time, determine if there is a single zone. If we're
739 * invalidate the single detected zone.
742 mem->zone = early_node_zone_for_memory_block(mem, nid);
744 mem->zone = NULL;
750 * to hotplugged memory), zone == NULL will prohibit memory offlining
783 * we'll determine the zone when setting the node id via
784 * memory_block_add_nid(). Memory hotplug updated the zone
787 mem->zone = early_node_zone_for_memory_block(mem, NUMA_NO_NODE);