[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4632dc1a-e561-f04e-421c-a770f9271bbd@redhat.com>
Date: Mon, 31 Jan 2022 11:42:09 +0100
From: David Hildenbrand <david@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Michal Hocko <mhocko@...e.com>,
Oscar Salvador <osalvador@...e.de>,
Rafael Parra <rparrazo@...hat.com>
Subject: Re: [PATCH v1 2/2] drivers/base/memory: determine and store zone for
single-zone memory blocks
> !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
Powered by blists - more mailing lists