Re: [PATCH] mm/page_alloc: Make alloc_gigantic_page() available for general use

From: Michal Hocko
Date: Wed Oct 16 2019 - 07:49:43 EST


On Wed 16-10-19 13:10:41, David Hildenbrand wrote:
> On 16.10.19 13:08, Michal Hocko wrote:
> > On Wed 16-10-19 10:56:16, David Hildenbrand wrote:
[...]
> > > Gigantic pages have to be aligned AFAIK.
> >
> > Aligned to what? I do not see any guarantee like that in the existing
> > code.
> >
>
> pfn = ALIGN(zone->zone_start_pfn, nr_pages);

I am obviously blind! Sorry about the confusion.

--
Michal Hocko
SUSE Labs