Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
From: Kairui Song
Date: Thu Aug 27 2026 - 06:03:26 EST
On Thu, Aug 27, 2026 at 4:08 PM Yue Haibing <yuehaibing@xxxxxxxxxx> wrote:
>
> Commit c246d236b18b ("mm/shmem: never bypass the swap cache for
> SWP_SYNCHRONOUS_IO") removed the implementations but leave this.
>
> Signed-off-by: Yue Haibing <yuehaibing@xxxxxxxxxx>
> ---
> mm/swap.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/swap.h b/mm/swap.h
> index d077e5893a42..29060a305443 100644
> --- a/mm/swap.h
> +++ b/mm/swap.h
> @@ -344,7 +344,6 @@ void __swap_cache_replace_folio(struct swap_cluster_info *ci,
> struct folio *old, struct folio *new);
>
> void show_swap_cache_info(void);
> -void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr);
Good catch.
Acked-by: Kairui Song <kasong@xxxxxxxxxxx>