]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/mmzone.h
mm/page_alloc.c: broken deferred calculation
[mirror_ubuntu-artful-kernel.git] / include / linux / mmzone.h
index 9c6c001a8c6c86292d806251525c8a9dff789e5e..6ea3b443d4ae0b33f0894bd25ffc07e7d2389c2c 100644 (file)
@@ -532,22 +532,6 @@ static inline bool zone_is_empty(struct zone *zone)
        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
@@ -691,7 +675,8 @@ typedef struct pglist_data {
         * 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