Skip to content

mm: zswap: simplify zswap_swapoff()

Yosry Ahmed linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-zswap-remove-unnecessary-trees-cleanups-in-zswap_swapoff.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied 2/2
  2. v12 patches 44 repliesSuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: swap: enforce updating inuse_pages at the end of swap_range_free()mm/swapfile.c+15 -31 replyApplied
2/2mm: zswap: remove unnecessary trees cleanups in zswap_swapoff()mm/zswap.c+3 -132 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHuang, YingChengming Zhou
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] mm: zswap: simplify zswap_swapoff()

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/[email protected]/

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(-)
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog