Re: [PATCH v4] mm: introduce a new page type for page pool in page type
From: Johannes Weiner
Date: Thu Feb 26 2026 - 14:06:45 EST
On Tue, Feb 24, 2026 at 02:13:47PM +0900, Byungchul Park wrote:
> @@ -1416,9 +1413,15 @@ __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))) {
> + /* networking expects to clear its page type before releasing */
> + if (unlikely(PageNetpp(page))) {
You can gate that on is_check_pages_enabled(), to avoid a new branch
in the !debug case.
Otherwise, the MM bits look good to me!
Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>