Re: [PATCH v4 13/13] x86/folio_zero_user: Add multi-page clearing
From: Matthew Wilcox
Date: Mon Jun 16 2025 - 10:59:04 EST
On Mon, Jun 16, 2025 at 07:44:13AM -0700, Dave Hansen wrote:
> To me multi-page means "more than one 'struct page'". But this series is
> clearly using multi-page clearing to mean clearing >PAGE_SIZE in one
> clear. But oh well.
I'm not sure I see the distinction you're trying to draw. struct page
refers to a PAGE_SIZE aligned, PAGE_SIZE sized chunk of memory. So
if you do something to more than PAGE_SIZE bytes, you're doing something
to multiple struct pages.