Re: [PATCH v5 1/3] mm/compaction: enable compacting >0 order folios.

From: Vlastimil Babka
Date: Thu Feb 15 2024 - 10:24:57 EST


On 2/14/24 23:04, Zi Yan wrote:
> From: Zi Yan <ziy@xxxxxxxxxx>
>
> migrate_pages() supports >0 order folio migration and during compaction,
> even if compaction_alloc() cannot provide >0 order free pages,
> migrate_pages() can split the source page and try to migrate the base
> pages from the split. It can be a baseline and start point for adding
> support for compacting >0 order folios.
>
> Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
> Suggested-by: Huang Ying <ying.huang@xxxxxxxxx>
> Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Tested-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Tested-by: Yu Zhao <yuzhao@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>

> Cc: Adam Manzanares <a.manzanares@xxxxxxxxxxx>
> Cc: David Hildenbrand <david@xxxxxxxxxx>
> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
> Cc: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx>
> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
> Cc: Ryan Roberts <ryan.roberts@xxxxxxx>
> Cc: Vishal Moola (Oracle) <vishal.moola@xxxxxxxxx>
> Cc: Vlastimil Babka <vbabka@xxxxxxx>
> Cc: Yin Fengwei <fengwei.yin@xxxxxxxxx>