Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
From: Baoquan He
Date: Thu Aug 27 2026 - 04:27:57 EST
On 08/27/26 at 04:27pm, Yue Haibing 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);
> struct folio *read_swap_cache_async(struct swap_io_ctx *ctx, swp_entry_t entry,
> gfp_t gfp_mask, struct vm_area_struct *vma, unsigned long addr);
> struct folio *swap_cluster_readahead(swp_entry_t entry, gfp_t flag,
Reviewed-by: Baoquan He <baoquan.he@xxxxxxxxx>
> --
> 2.34.1
>