Re: [PATCH v3 07/12] mm/collapse: name the per-table scan reset for what it resets

From: David Hildenbrand (Arm)

Date: Wed Sep 23 2026 - 08:26:29 EST


On 9/16/26 11:31, Kiryl Shutsemau wrote:
> From: "Kiryl Shutsemau (Meta)" <kas@xxxxxxxxxx>
>
> collapse_control_init_scan() resets what one scan accumulates: the node
> load, the allocation nodemask and the eligible-PTE bitmap. It runs before
> every PTE table a scan is given, not once per control, so its name points
> at the wrong thing.
>
> Call it collapse_scan_reset().
>
> Preparation for giving a control a real init and release, run once each
> for a whole series of scans. Two names a word apart would then stand for
> two different jobs.
>
> No functional change.
>
> Assisted-by: LLM
> Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
> Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David