[PATCHv6 08/17] mm: Make page_zonenum() use head page
Muchun Song
muchun.song at linux.dev
Tue Feb 3 19:40:35 PST 2026
> On Feb 2, 2026, at 23:56, Kiryl Shutsemau <kas at kernel.org> wrote:
>
> With the upcoming changes to HVO, a single page of tail struct pages
> will be shared across all huge pages of the same order on a node. Since
> huge pages on the same node may belong to different zones, the zone
> information stored in shared tail page flags would be incorrect.
>
> Always fetch zone information from the head page, which has unique and
> correct zone flags for each compound page.
>
> Signed-off-by: Kiryl Shutsemau <kas at kernel.org>
> Acked-by: Zi Yan <ziy at nvidia.com>
Acked-by: Muchun Song <muchun.song at linux.dev>
More information about the linux-riscv
mailing list