Re: [PATCH 4/4] mm/migrate, swap: drop usage of folio_index

From: Baolin Wang

Date: Mon Oct 13 2025 - 23:15:59 EST




On 2025/10/7 04:02, Kairui Song 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>
---

With the commit message fixed, LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>