Re: [PATCH 4/4] mm/migrate, swap: drop usage of folio_index
From: Chris Li
Date: Wed Oct 08 2025 - 17:03:26 EST
Thanks for the cleanup.
Agree with the other fix suggested by Nhat regarding swap cache vs page cache.
On Mon, Oct 6, 2025 at 1:03 PM Kairui Song <ryncsn@xxxxxxxxx> wrote:
>
> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> This helper was used when swap cache was mixed with swap cache. Now they
> are completely separate from each other, access to the swap cache is all
> wrapped by the swap_cache_* helpers, which expect the folio's swap entry
> as a parameter.
>
> This helper is no longer used, remove the last redundant user and drop it.
>
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
> ---
> mm/migrate.c | 4 ++--
> mm/swap.h | 21 ---------------------
Nice.
Acked-by: Chris Li <chrisl@xxxxxxxxxx>
Chris