Re: [RFC PATCH 03/57] mm/collapse: add collapse.h for the shared collapse state
"David Hildenbrand (Arm)" <[email protected]>
| Newsgroups | org.kernel.vger.linux-trace-kernel,org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On 8/17/26 00:45, Kiryl Shutsemau wrote: > From: "Kiryl Shutsemau (Meta)" <[email protected]> > > 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) <[email protected]> > --- BTW, I'm wondering whether it would result in less churn (independent of the other changes) to a) Rename mm/khugeapged.c to mm/collapse.c b) Move stuff into mm/collapse.h that a new ... c) mm/khugapegd.c will need. -- Cheers, David