Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/swap: skip empty clusters in the swapoff scan
@ 2026-07-28 15:59 Youngjun Park
  2026-07-28 15:59 ` [PATCH 1/2] mm/swap: fix stale comment on swap_info_struct::cluster_info Youngjun Park
  2026-07-28 15:59 ` [PATCH 2/2] mm/swap: scan by cluster in find_next_to_unuse() Youngjun Park
  0 siblings, 2 replies; 7+ messages in thread
From: Youngjun Park @ 2026-07-28 15:59 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Chris Li, Kairui Song, Kemeng Shi, Nhat Pham, Baoquan He,
	Barry Song, Youngjun Park, her0gyugyu, linux-mm, linux-kernel

From: Youngjun Park <her0gyugyu@gmail.com>

find_next_to_unuse() walks a swap device one offset at a time.  Slot
state now lives in a per cluster swap table, so patch 2 dismisses an
empty cluster with one counter read instead of SWAPFILE_CLUSTER table
reads.

Patch 1 is an unrelated one line comment fix noticed on the way.

A counter in the skip branch confirmed it runs, and swapoff completed
with the device under load.  No DEBUG_VM or lockdep splats.

Youngjun Park (2):
  mm/swap: fix stale comment on swap_info_struct::cluster_info
  mm/swap: scan by cluster in find_next_to_unuse()

 include/linux/swap.h |  2 +-
 mm/swapfile.c        | 39 ++++++++++++++++++++++++++-------------
 2 files changed, 27 insertions(+), 14 deletions(-)


base-commit: 2a4faffc103297c4822bb269d521249b75cc2261
-- 
2.48.1



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

end of thread, other threads:[~2026-08-05 14:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 15:59 [PATCH 0/2] mm/swap: skip empty clusters in the swapoff scan Youngjun Park
2026-07-28 15:59 ` [PATCH 1/2] mm/swap: fix stale comment on swap_info_struct::cluster_info Youngjun Park
     [not found]   ` <CAGsJ_4wvWMm4O=OBCQgpT=OWudgZ5D8E0Ri_B7xS6+6nQX7vjg@mail.gmail.com>
2026-08-04 16:33     ` Youngjun Park
     [not found]   ` <CAMgjq7CdpMKQCPyJxDZzYG163NNxbbnOdiyhbiXKzEh1qS-VKg@mail.gmail.com>
2026-08-04 16:36     ` Youngjun Park
2026-07-28 15:59 ` [PATCH 2/2] mm/swap: scan by cluster in find_next_to_unuse() Youngjun Park
2026-08-04 16:51   ` Kairui Song
2026-08-05 14:23     ` Youngjun Park

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