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

From: Zi Yan

Date: Sat Sep 05 2026 - 14:05:36 EST


On Fri Sep 4, 2026 at 11:10 AM EDT, 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: Claude-Code:claude-opus-5
> Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
> ---
> mm/khugepaged.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
LGTM.

Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>

--
Best Regards,
Yan, Zi