Skip to content

mm: store zero pages to be swapped out in a bitmap

Usama Arif linux-mm lkml 8 versions – Applied

Status from this message: [merged mm-stable] mm-remove-code-to-handle-same-filled-pages.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest posting 2/22 patches 4 repliesApplied 2/2
  2. v8 posting 1/21 of 2 patches 0 repliesSuperseded
  3. v72 patches 8 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v62 patches0 repliesSuperseded
v52 patches9 repliesSuperseded 1 of 2 applied
v42 patches34 repliesSuperseded
v32 patches25 repliesSuperseded
v12 patches9 repliesSuperseded

Patches in v8 posting 2/2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: store zero pages to be swapped out in a bitmapinclude/linux/swap.h mm/page_io.c mm/swapfile.c+151 -62 repliesApplied
2/2mm: remove code to handle same filled pagesmm/zswap.c+8 -770 repliesApplied

Reviews trailers per patch

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

PatchChengming ZhouYosry AhmedNhat PhamJohannes Weiner
1/2R-b R-b R-b A-b
2/2R-b A-b R-b A-b

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

Read the v8 thread

Cover letter [RESEND v8 0/2] mm: store zero pages to be swapped out in a bitmap

Resending it, as the CC had "Huang, Ying" in one of the initial patches, and it was rejected by git send-email because of the "," in name.

The original series [1] was almost merged, but was dropped due to a last minute bug [2]. Resending this with the fix for it, by handling zeromap in the same way as swap_map and cluster_info in enable_swap_info, holding swapon_mutex and si->lock, hence avoiding a race condition between swapon and any point where the lock is held. This is the safest way.

The series had already been reviewed and acked by all maintainers.

Hoping that this attempt goes better than the initial one :)

This patchseries is based on mm-unstable from today:
4926e8348e10 - (akpm/mm-unstable) mm: optimization on page allocation when CMA enabled

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Usama Arif (2):
mm: store zero pages to be swapped out in a bitmap
mm: remove code to handle same filled pages

 include/linux/swap.h |   1 +
 mm/page_io.c         | 118 ++++++++++++++++++++++++++++++++++++++++++-
 mm/swapfile.c        |  38 ++++++++++++--
 mm/zswap.c           |  85 +++----------------------------
 4 files changed, 159 insertions(+), 83 deletions(-)
Signature · 1 line
2.43.5