mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
  2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
@ 2026-08-27  8:24 ` Baoquan He
  2026-08-27  9:52 ` Kairui Song
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Baoquan He @ 2026-08-27  8:24 UTC (permalink / raw)
  To: Yue Haibing
  Cc: akpm, chrisl, kasong, shikemeng, nphamcs, baohua, youngjun.park,
	linux-mm, linux-kernel

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@huawei.com>
> ---
>  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@linux.dev>

> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
@ 2026-08-27  8:27 Yue Haibing
  2026-08-27  8:24 ` Baoquan He
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Yue Haibing @ 2026-08-27  8:27 UTC (permalink / raw)
  To: akpm, chrisl, kasong, shikemeng, nphamcs, baoquan.he, baohua,
	youngjun.park
  Cc: linux-mm, linux-kernel, yuehaibing

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@huawei.com>
---
 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,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
  2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
  2026-08-27  8:24 ` Baoquan He
@ 2026-08-27  9:52 ` Kairui Song
  2026-08-27 11:40 ` Nick Huang
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kairui Song @ 2026-08-27  9:52 UTC (permalink / raw)
  To: Yue Haibing
  Cc: akpm, chrisl, shikemeng, nphamcs, baoquan.he, baohua,
	youngjun.park, linux-mm, linux-kernel

On Thu, Aug 27, 2026 at 4:08 PM Yue Haibing <yuehaibing@huawei.com> 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@huawei.com>
> ---
>  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@tencent.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
  2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
  2026-08-27  8:24 ` Baoquan He
  2026-08-27  9:52 ` Kairui Song
@ 2026-08-27 11:40 ` Nick Huang
  2026-08-27 11:44 ` Barry Song
  2026-08-28  2:07 ` SJ Park
  4 siblings, 0 replies; 6+ messages in thread
From: Nick Huang @ 2026-08-27 11:40 UTC (permalink / raw)
  To: Yue Haibing
  Cc: akpm, chrisl, kasong, shikemeng, nphamcs, baoquan.he, baohua,
	youngjun.park, linux-mm, linux-kernel

On Thu, Aug 27, 2026 at 04:27:22PM +0800, 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@huawei.com>
> ---
>  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,
> -- 
> 2.34.1
>
I checked the current tree and only the declaration remains:

$ git grep -n 'swapcache_clear'
mm/swap.h:317:void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr);

Acked-by: Nick Huang <sef1548@gmail.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
  2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
                   ` (2 preceding siblings ...)
  2026-08-27 11:40 ` Nick Huang
@ 2026-08-27 11:44 ` Barry Song
  2026-08-28  2:07 ` SJ Park
  4 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2026-08-27 11:44 UTC (permalink / raw)
  To: Yue Haibing
  Cc: akpm, chrisl, kasong, shikemeng, nphamcs, baoquan.he,
	youngjun.park, linux-mm, linux-kernel

On Thu, Aug 27, 2026 at 4:06 PM Yue Haibing <yuehaibing@huawei.com> 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@huawei.com>

Right!
Reviewed-by: Barry Song <baohua@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] mm/swap: Remove unused declaration swapcache_clear()
  2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
                   ` (3 preceding siblings ...)
  2026-08-27 11:44 ` Barry Song
@ 2026-08-28  2:07 ` SJ Park
  4 siblings, 0 replies; 6+ messages in thread
From: SJ Park @ 2026-08-28  2:07 UTC (permalink / raw)
  To: Yue Haibing
  Cc: SJ Park, akpm, chrisl, kasong, shikemeng, nphamcs, baoquan.he,
	baohua, youngjun.park, linux-mm, linux-kernel

On Thu, 27 Aug 2026 16:27:22 +0800 Yue Haibing <yuehaibing@huawei.com> wrote:

> Commit c246d236b18b ("mm/shmem: never bypass the swap cache for
> SWP_SYNCHRONOUS_IO") removed the implementations but leave this.

Nice catch.

> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>

Reviewed-by: SJ Park <sj@kernel.org>


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-28  2:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-27  8:27 [PATCH -next] mm/swap: Remove unused declaration swapcache_clear() Yue Haibing
2026-08-27  8:24 ` Baoquan He
2026-08-27  9:52 ` Kairui Song
2026-08-27 11:40 ` Nick Huang
2026-08-27 11:44 ` Barry Song
2026-08-28  2:07 ` SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®