Messages in this thread | | | Date | Mon, 31 Jan 2022 11:42:09 +0100 | Subject | Re: [PATCH v1 2/2] drivers/base/memory: determine and store zone for single-zone memory blocks | From | David Hildenbrand <> |
| |
> !IS_ALIGNED(start_pfn, pageblock_nr_pages) || > - !IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION))) > + !IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION) || > + page_zone(pfn_to_page(start_pfn)) != zone || > + page_zone(pfn_to_page(end_pfn - 1)) != zone))
I just realized that we have to do these sanity checks after our check for memory holes.
-- Thanks,
David / dhildenb
| |