Re: [PATCH] mm: update outdated comments for removed scan_swap_map_slots()

From: David Hildenbrand (Arm)

Date: Mon Mar 23 2026 - 04:59:37 EST


On 3/21/26 11:58, Kexin Sun wrote:
> The function scan_swap_map_slots() was removed in commit
> 0ff67f990bd4 ("mm, swap: remove swap slot cache").
>
> The three comments referencing it simply noted that ->flags can be
> updated non-atomically by scan_swap_map_slots() to justify a
> data_race() annotation. Since the function no longer exists, drop
> the parenthetical reference while keeping the data_race()
> justification intact: ->flags can still be updated non-atomically
> by other paths (e.g., swapoff clearing SWP_WRITEOK).
>
> Assisted-by: unnamed:deepseek-v3.2 coccinelle
> Signed-off-by: Kexin Sun <kexinsun@xxxxxxxxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David