Re: [PATCH linux-next v3] mm, page_pool: introduce a new page type for page pool in page type
From: Jakub Kicinski
Date: Wed Aug 13 2025 - 10:54:18 EST
On Wed, 13 Aug 2025 12:18:56 +0100 Pavel Begunkov wrote:
> It should go to net, there will be enough of conflicts otherwise.
> mm maintainers, do you like it as a shared branch or can it just
> go through the net tree?
Looks like this is 100% in mm, and the work is not urgent at all.
So I'm happy for Andrew to take this, and dependent patches (if any)
can come in the next cycle.
> @@ -1379,9 +1376,11 @@ __always_inline bool free_pages_prepare(struct page *page,
> mod_mthp_stat(order, MTHP_STAT_NR_ANON, -1);
> folio->mapping = NULL;
> }
> - if (unlikely(page_has_type(page)))
> + if (unlikely(page_has_type(page))) {
> + WARN_ON_ONCE(PageNet_pp(page));
I guess my ask to add a comment here got ignored?
> /* Reset the page_type (which overlays _mapcount) */
> page->page_type = UINT_MAX;