Re: [PATCH 2/4] mm, swap: rename helper for setup bad slots

From: Nhat Pham

Date: Tue Oct 07 2025 - 19:47:43 EST


On Mon, Oct 6, 2025 at 1:03 PM Kairui Song <ryncsn@xxxxxxxxx> wrote:
>
> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> The name inc_cluster_info_page is very confusing, as this helper is only
> used during swapon to mark bad slots. Rename it properly and turn the
> VM_BUG_ON in it into WARN_ON to expose more potential issues. Swapon is
> a cold path, so adding more checks should be a good idea.
>
> No feature change except new WARN_ON.
>
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>

Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>