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

- From: Kiryl Shutsemau \<hidden\>
- Date: 2026-08-20 11:06:13 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2026/08/17438079
- Thread: https://ratatoskr.run/linux-mm/2026/08/17419184/t/2.md

```text
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@kernel.org>
> >
> > 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@kernel.org>
> 
> 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
```
