Re: [PATCH 2/4] mm, swap: rename helper for setup bad slots
From: David Hildenbrand
Date: Wed Oct 08 2025 - 06:26:05 EST
On 06.10.25 22:02, Kairui Song 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>
---
Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers
David / dhildenb