Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] mm: zswap: optimize zswap invalidate and store
@ 2026-09-10 12:35 Kefeng Wang
  2026-09-10 12:35 ` [PATCH v3 1/3] mm: zswap: convert zswap_invalidate() to take a range Kefeng Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Kefeng Wang @ 2026-09-10 12:35 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, Chengming Zhou, Johannes Weiner, Kairui Song, Nhat Pham,
	Yosry Ahmed, Kefeng Wang

This series range-ifies zswap_invalidate() to skip xarray lookups
when zswap is unused, and reuses it in zswap_store() to eliminate
redundant per-slot lookups and open-coded logic.

v3:
- make zswap_invalidate() to take nr_entries and add
  zswap_never_enabled() into it
- since all patches refreshed, so no ACK/RB added

v2:
- split patches and refactor zswap_invalidate(), suggested by
  Johannes Weiner
- add patch4 to skip zswap_invalidate() in swap_range_free()

Kefeng Wang (3):
  mm: zswap: convert zswap_invalidate() to take a range
  mm: zswap: skip xarray walk in zswap_invalidate() when zswap is unused
  mm: zswap: reuse zswap_invalidate() in zswap_store()

 include/linux/zswap.h |  8 ++++++--
 mm/swapfile.c         |  4 +---
 mm/zswap.c            | 45 ++++++++++++++++++++++---------------------
 3 files changed, 30 insertions(+), 27 deletions(-)

-- 
2.55.0



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

end of thread, other threads:[~2026-09-10 19:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 12:35 [PATCH v3 0/3] mm: zswap: optimize zswap invalidate and store Kefeng Wang
2026-09-10 12:35 ` [PATCH v3 1/3] mm: zswap: convert zswap_invalidate() to take a range Kefeng Wang
2026-09-10 14:08   ` Yosry Ahmed
2026-09-10 19:32   ` Johannes Weiner
2026-09-10 12:35 ` [PATCH v3 2/3] mm: zswap: skip xarray walk in zswap_invalidate() when zswap is unused Kefeng Wang
2026-09-10 14:08   ` Yosry Ahmed
2026-09-10 19:32   ` Johannes Weiner
2026-09-10 12:35 ` [PATCH v3 3/3] mm: zswap: reuse zswap_invalidate() in zswap_store() Kefeng Wang
2026-09-10 14:09   ` Yosry Ahmed
2026-09-10 19:33   ` Johannes Weiner

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