Re: [RFC PATCH 03/57] mm/collapse: add collapse.h for the shared collapse state

From: Kiryl Shutsemau

Date: Thu Aug 20 2026 - 07:06:18 EST


On Tue, Aug 18, 2026 at 11:50:55AM +0100, Lorenzo Stoakes (ARM) wrote:
> On Sun, Aug 16, 2026 at 11:45:15PM +0100, Kiryl Shutsemau wrote:
> > From: "Kiryl Shutsemau (Meta)" <kas@xxxxxxxxxx>
> >
> > Preparation for building the new collapse engine in its own file. The
> > engine and khugepaged.c need to agree on what a collapse result is and
> > what state a scan carries.
> >
> > Move enum scan_result and struct collapse_control into a new
> > mm/collapse.h.
> >
> > No functional change intended.
> >
> > Assisted-by: Claude-Code:claude-opus-5
> > Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
>
> Any change that introduces a new file should in the same change update
> MAINTAINERS (in the THP section to which this belongs :)

Will do.

--
Kiryl Shutsemau / Kirill A. Shutemov