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

From: Jiaqi Yan

Date: Sun Aug 16 2026 - 20:28:49 EST


On Fri, Jul 24, 2026 at 8:55 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
>
> On Sun, Jul 05, 2026 at 06:07:10PM +0000, Jiaqi Yan wrote:
> > Rename the core logic to __free_prepared_contig_range() to accept
> > an fpi_t argument. It bitwise ORs with the required FPI_PREPARED
> > flag.
>
> There are only three callers of free_prepared_contig_range(), all
> in the same function. It would seem like less effort to just
> modify free_prepared_contig_range() to take an fpi_t than
> introduce this wrapper.

Sure, I can merge __free_prepared_contig_range() into
free_prepared_contig_range() and just update the callers to pass
FPI_NONE.