linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm: zswap: simplify zswap_swapoff()
@ 2024-01-24  4:51 Yosry Ahmed
  2024-01-24  4:51 ` [PATCH v2 1/2] mm: swap: enforce updating inuse_pages at the end of swap_range_free() Yosry Ahmed
  2024-01-24  4:51 ` [PATCH v2 2/2] mm: zswap: remove unnecessary trees cleanups in zswap_swapoff() Yosry Ahmed
  0 siblings, 2 replies; 6+ messages in thread
From: Yosry Ahmed @ 2024-01-24  4:51 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Johannes Weiner, Nhat Pham, Chris Li, Chengming Zhou, Huang Ying,
	linux-mm, linux-kernel, Yosry Ahmed

These patches aim to simplify zswap_swapoff() by removing the
unnecessary trees cleanup code. Patch 1 makes sure that the order of
operations during swapoff is enforced correctly, making sure the
simplification in patch 2 is correct in a future-proof manner.

This is based on mm-unstable and v2 of the "mm/zswap: optimize the
scalability of zswap rb-tree" series [1].

[1]https://lore.kernel.org/lkml/20240117-b4-zswap-lock-optimize-v2-0-b5cc55479090@bytedance.com/

Yosry Ahmed (2):
  mm: swap: enforce updating inuse_pages at the end of swap_range_free()
  mm: zswap: remove unnecessary trees cleanups in zswap_swapoff()

 mm/swapfile.c | 18 +++++++++++++++---
 mm/zswap.c    | 16 +++-------------
 2 files changed, 18 insertions(+), 16 deletions(-)

-- 
2.43.0.429.g432eaa2c6b-goog



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

end of thread, other threads:[~2024-01-24  7:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24  4:51 [PATCH v2 0/2] mm: zswap: simplify zswap_swapoff() Yosry Ahmed
2024-01-24  4:51 ` [PATCH v2 1/2] mm: swap: enforce updating inuse_pages at the end of swap_range_free() Yosry Ahmed
2024-01-24  5:20   ` Huang, Ying
2024-01-24  4:51 ` [PATCH v2 2/2] mm: zswap: remove unnecessary trees cleanups in zswap_swapoff() Yosry Ahmed
2024-01-24  4:52   ` Yosry Ahmed
2024-01-24  7:34   ` Chengming Zhou

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