lkml.org 
[lkml]   [2022]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1 2/2] drivers/base/memory: determine and store zone for single-zone memory blocks
From
>  			 !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

\
 
 \ /
  Last update: 2022-01-31 11:43    [W:1.998 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site