Skip to content

mm: zswap: misc optimizations

Kefeng Wang linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 9 repliesIn review

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: zswap: pass type and offset to zswap_invalidate() directlyinclude/linux/zswap.h mm/swapfile.c mm/zswap.c+12 -83 replies
2/4mm: zswap: reuse zswap_invalidate() in zswap_store() check_old pathmm/zswap.c+3 -92 replies
3/4mm: zswap: avoid unnecessary xarray lookup in zswap_store()mm/zswap.c+3 -01 reply
4/4mm: zswap: skip zswap_invalidate() in swap_range_free() when zswap is unusedmm/swapfile.c+4 -23 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJohannes WeinerYosry AhmedNhat Pham
1/4R-b A-b A-b
2/4R-b A-b
3/4R-b A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] mm: zswap: misc optimizations

This series cleans up duplication in zswap_invalidate() and adds fast paths in zswap_store() which now skips redundant xarray lookups, while swap_range_free() skips needless zswap_invalidate() calls.

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

Kefeng Wang (4):
mm: zswap: pass type and offset to zswap_invalidate() directly
mm: zswap: reuse zswap_invalidate() in zswap_store() check_old path
mm: zswap: avoid unnecessary xarray lookup in zswap_store()
mm: zswap: skip zswap_invalidate() in swap_range_free() when zswap is
unused

 include/linux/zswap.h |  4 ++--
 mm/swapfile.c         |  6 ++++--
 mm/zswap.c            | 29 +++++++++++++++--------------
 3 files changed, 21 insertions(+), 18 deletions(-)
Signature · 1 line
2.55.0