Re: [PATCH v1 2/2] drivers/base/memory: determine and store zone for single-zone memory blocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  			 !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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux