Re: [RFC PATCH 07/12] mm/compaction: optionally use a different isolate function

From: Rik van Riel

Date: Wed Sep 17 2025 - 09:02:54 EST


On Mon, 2025-09-15 at 19:51 +0000, Frank van der Linden wrote:
> For CMA balancing, the compaction migration hooks can largely
> be reused, except a different function to isolate free pages
> is needed.
>
> So, add a pointer to the isolation function in the compact_control
> structure. If it's not NULL, use it, else use isolate_freepages as
> usual.
>
> No functional change.
>
> Signed-off-by: Frank van der Linden <fvdl@xxxxxxxxxx>
>

A custom isolation function can certainly solve some
of the issues!

Acked-by: Rik van Riel <riel@xxxxxxxxxxx>

--
All Rights Reversed.