Re: [PATCH v8 3/6] mm/page_alloc: add support for initializing pageblock as isolated.

From: Zi Yan
Date: Mon Jun 02 2025 - 21:56:24 EST


On 2 Jun 2025, at 19:52, Zi Yan wrote:

> MIGRATE_ISOLATE is a standalone bit, so a pageblock cannot be initialized
> to just MIGRATE_ISOLATE. Add init_pageblock_migratetype() to enable
> initialize a pageblock with a migratetype and isolated.
>
> Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
> Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>
> Acked-by: David Hildenbrand <david@xxxxxxxxxx>
> ---
> include/linux/memory_hotplug.h | 3 ++-
> include/linux/page-isolation.h | 3 +++
> mm/hugetlb.c | 4 ++--
> mm/internal.h | 3 ++-
> mm/memory_hotplug.c | 12 ++++++++----
> mm/memremap.c | 2 +-
> mm/mm_init.c | 24 +++++++++++++++---------
> mm/page_alloc.c | 24 ++++++++++++++++++++++++
> 8 files changed, 57 insertions(+), 18 deletions(-)