[PATCHv6 09/17] mm/sparse: Check memmap alignment for compound_info_has_mask()
Muchun Song
muchun.song at linux.dev
Mon Feb 2 19:35:24 PST 2026
> On Feb 2, 2026, at 23:56, Kiryl Shutsemau <kas at kernel.org> wrote:
>
> If page->compound_info encodes a mask, it is expected that vmemmap to be
> naturally aligned to the maximum folio size.
>
> Add a VM_BUG_ON() to check the alignment.
>
> Signed-off-by: Kiryl Shutsemau <kas at kernel.org>
> Acked-by: Zi Yan <ziy at nvidia.com>
Reviewed-by: Muchun Song <muchun.song at linux.dev>
More information about the linux-riscv
mailing list