Re: [PATCH v3 1/2] mm/swapfile.c: introduce function alloc_swap_scan_list()
From: Nhat Pham
Date: Wed Aug 13 2025 - 11:00:42 EST
On Tue, Aug 12, 2025 at 12:10 AM Chris Li <chrisl@xxxxxxxxxx> wrote:
>
> alloc_swap_scan_list() will scan the whole list or the first cluster.
>
> This reduces the repeat patterns of isolating a cluster then scanning that
> cluster. As a result, cluster_alloc_swap_entry() is shorter and shallower.
>
> No functional change.
>
> Signed-off-by: Chris Li <chrisl@xxxxxxxxxx>
Code seems more readable now, IMO. Thanks, Chris!
Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>