Re: [PATCH v5 7/9] mm/collapse: name the per-table scan reset for what it resets
From: Lance Yang
Date: Thu Oct 15 2026 - 00:46:50 EST
On Wed, Oct 14, 2026 at 06:11:40PM +0100, Kiryl Shutsemau (Meta) wrote:
>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, run once for a whole series
>of scans. Two names a word apart would then stand for two different jobs.
>
>No functional change.
>
>Assisted-by: LLM
>Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
>Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
>Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
>Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
>---
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>