[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <988b3664-057a-4e24-815f-6fa01efb87d5@suse.cz>
Date: Fri, 30 May 2025 19:01:34 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: Zi Yan <ziy@...dia.com>, David Hildenbrand <david@...hat.com>,
Johannes Weiner <hannes@...xchg.org>, linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Oscar Salvador <osalvador@...e.de>,
Baolin Wang <baolin.wang@...ux.alibaba.com>,
"Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
Mel Gorman <mgorman@...hsingularity.net>,
Suren Baghdasaryan <surenb@...gle.com>, Michal Hocko <mhocko@...e.com>,
Brendan Jackman <jackmanb@...gle.com>, Richard Chang
<richardycc@...gle.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 1/6] mm/page_alloc: pageblock flags functions clean up.
On 5/30/25 18:22, Zi Yan wrote:
> No functional change is intended.
>
> 1. Add __NR_PAGEBLOCK_BITS for the number of pageblock flag bits and use
> roundup_pow_of_two(__NR_PAGEBLOCK_BITS) as NR_PAGEBLOCK_BITS to take
> right amount of bits for pageblock flags.
> 2. Rename PB_migrate_skip to PB_compact_skip.
> 3. Add {get,set,clear}_pfnblock_bit() to operate one a standalone bit,
> like PB_compact_skip.
> 3. Make {get,set}_pfnblock_flags_mask() internal functions and use
> {get,set}_pfnblock_migratetype() for pageblock migratetype operations.
> 4. Move pageblock flags common code to get_pfnblock_bitmap_bitidx().
> 3. Use MIGRATETYPE_MASK to get the migratetype of a pageblock from its
> flags.
> 4. Use PB_migrate_end in the definition of MIGRATETYPE_MASK instead of
> PB_migrate_bits.
> 5. Add a comment on is_migrate_cma_folio() to prevent one from changing it
> to use get_pageblock_migratetype() and causing issues.
>
> Signed-off-by: Zi Yan <ziy@...dia.com>
Reviewed-by: Vlastimil Babka <vbabka@...e.cz>
Powered by blists - more mailing lists