Skip to content

Clean up and fixes for swap

Kairui Song linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] swap-avoid-holding-swap-reference-in-swap_cache_get_folio.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesApplied 4/4
  2. v15 patches 11 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4swapfile: get rid of volatile and avoid redundant readmm/swapfile.c+4 -30 repliesApplied
2/4swap: avoid a redundant pte map if ra window is 1mm/swap_state.c+2 -50 repliesApplied
3/4swap: fold swap_ra_clamp_pfn into swap_ra_infomm/swap_state.c+19 -250 repliesApplied
4/4swap: avoid holding swap reference in swap_cache_get_foliomm/shmem.c mm/swap_state.c+13 -60 repliesApplied

Reviews trailers per patch

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

PatchHuang, Ying
1/4R-b
2/4R-b
3/4R-b
4/4

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/4] Clean up and fixes for swap

From: Kairui Song <[email protected]>

This series cleanup some code path, saves a few cycles and reduce the object size by a bit, also fixes some rare race issue of statistics.

Update from V1:
- Collect Huang, Ying's Reviewd-by.
- Use bloat-o-meter to show size change info in commit message as suggested by Matthew Wilcox.
- Rework patch 4/4 as suggested by Huang, Ying.
- Drop a previouly invalid clean up patch.

Kairui Song (4):
swapfile: get rid of volatile and avoid redundant read
swap: avoid a redundant pte map if ra window is 1
swap: fold swap_ra_clamp_pfn into swap_ra_info
swap: avoid holding swap reference in swap_cache_get_folio

 mm/shmem.c      | 11 +++++++++
 mm/swap_state.c | 59 +++++++++++++++++++------------------------------
 mm/swapfile.c   |  7 +++---
 3 files changed, 38 insertions(+), 39 deletions(-)
Signature · 1 line
2.35.2