Re: [PATCH v2 08/12] mm/collapse: separate scanning a PTE table from collapsing it
From: Kiryl Shutsemau
Date: Tue Sep 15 2026 - 10:48:40 EST
On Tue, Sep 15, 2026 at 07:09:06PM +0800, Baolin Wang wrote:
> > + if (!file)
> > + return mthp_collapse(mm, addr, cc->scan_referenced,
> > + cc->scan_unmapped, cc, cc->scan_orders);
>
> You already record scan_referenced, scan_unmapped, and scan_orders in 'cc'.
> It looks like simply passing 'cc' as a parameter should be enough.
Fair enough. Will do in v3. The same applies to collapse_huge_page() one
level down.
--
Kiryl Shutsemau / Kirill A. Shutemov