Re: [PATCH v2 10/22] mm: introduce freetype_t

From: Brendan Jackman

Date: Sun May 17 2026 - 20:01:22 EST


On Mon May 11, 2026 at 11:26 AM PDT, Vlastimil Babka (SUSE) wrote:
> On 3/20/26 19:23, Brendan Jackman wrote:
>> --- a/mm/page_alloc.c
>> +++ b/mm/page_alloc.c
>> @@ -422,6 +422,37 @@ bool get_pfnblock_bit(const struct page *page, unsigned long pfn,
>> return test_bit(bitidx + pb_bit, bitmap_word);
>> }
>>
>> +/**
>> + * __get_pfnblock_freetype - Return the freetype of a pageblock, optionally
>> + * ignoring the fact that it's currently isolated.
>> + * @page: The page within the block of interest
>> + * @pfn: The target page frame number
>> + * @ignore_iso: If isolated, return the migratetype that the block had before
>> + * isolation.
>> + */
>> +__always_inline freetype_t
>> +__get_pfnblock_freetype(const struct page *page, unsigned long pfn,
>> + bool ignore_iso)
>
> Hm I also noticed ignore_iso is ... ignored until later patch.

BTW just to note, Sashiko spotted this bug too:

https://sashiko.dev/#/patchset/20260320-page_alloc-unmapped-v2-0-28bf1bd54f41%40google.com