return zone->spanned_pages == 0;
}
-/*
- * Return true if [start_pfn, start_pfn + nr_pages) range has a non-empty
- * intersection with the given zone
- */
-static inline bool zone_intersects(struct zone *zone,
- unsigned long start_pfn, unsigned long nr_pages)
-{
- if (zone_is_empty(zone))
- return false;
- if (start_pfn >= zone_end_pfn(zone) ||
- start_pfn + nr_pages <= zone->zone_start_pfn)
- return false;
-
- return true;
-}
-
/*
* The "priority" of VM scanning is how much of the queues we will scan in one
* go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the
* is the first PFN that needs to be initialised.
*/
unsigned long first_deferred_pfn;
- unsigned long static_init_size;
+ /* Number of non-deferred pages */
+ unsigned long static_init_pgcnt;
#endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */
#ifdef CONFIG_TRANSPARENT_HUGEPAGE