mm: zswap: misc optimizations
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mm: zswap: pass type and offset to zswap_invalidate() directlyinclude/ mm/ mm/ | +12 | 3 replies | |
| 2/4 | mm: zswap: reuse zswap_invalidate() in zswap_store() check_old pathmm/ | +3 | 2 replies | |
| 3/4 | mm: zswap: avoid unnecessary xarray lookup in zswap_store()mm/ | +3 | 1 reply | |
| 4/4 | mm: zswap: skip zswap_invalidate() in swap_range_free() when zswap is unusedmm/ | +4 | 3 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Johannes Weiner | Yosry Ahmed | Nhat Pham |
|---|---|---|---|
| 1/4 | R-b | A-b | A-b |
| 2/4 | R-b | A-b | |
| 3/4 | R-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.
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