Re: [PATCH v6 1/5] mm/page_alloc: introduce __free_prepared_contig_range() with fpi_t

From: Miaohe Lin

Date: Fri Jul 17 2026 - 03:17:22 EST


On 2026/7/6 2:07, Jiaqi Yan wrote:
> A future commit introducing free_has_hwpoison() to be called within
> __free_pages_prepare() will need to pass specific fpi_t flags when
> freeing a contiguous range of pages. Currently,
> free_prepared_contig_range() hardcodes the FPI_PREPARED flag and
> does not accept any caller-provided flags.
>
> Rename the core logic to __free_prepared_contig_range() to accept
> an fpi_t argument. It bitwise ORs with the required FPI_PREPARED
> flag.
>
> This is a preparatory commit with no functional changes.
>
> Signed-off-by: Jiaqi Yan <jiaqiyan@xxxxxxxxxx>
> ---
> mm/page_alloc.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>

Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Thanks.
.