Skip to content

mm: Use pte marker for swapin errors

Peter Xu linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] mm-use-pte-markers-for-swap-errors.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied 2/2

Changes in v1 from the cover letter

- Rename SWAP_ERROR -> SWAPIN_ERROR [David, Miaohe]
- Added r-bs for Ying and Miaohe

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: Always compile in pte markersinclude/linux/swap.h include/linux/swapops.h mm/Kconfig +1 more+6 -491 replyApplied
2/2mm: Use pte markers for swap errorsinclude/linux/swap.h include/linux/swapops.h mm/memory.c +2 more+21 -211 replyApplied

Reviews trailers per patch

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

PatchHuang YingMiaohe LinDavid Hildenbrand
1/2R-b R-b A-b
2/2R-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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] mm: Use pte marker for swapin errors

rfc->v1:
- Rename SWAP_ERROR -> SWAPIN_ERROR [David, Miaohe]
- Added r-bs for Ying and Miaohe

Hi,

This series uses the pte marker to replace the swapin error swap entry, then we save one more swap entry slot for swap devices. A new pte marker bit is defined.

One thing worth mentioning: we need the pte marker to be always built to make sure it works like before, so I made an attempt in patch 1 to drop CONFIG_PTE_MARKER and always compile pte marker in. Since pte markers are enabled in many distributions by default already, meanwhile the codeset is really small I assume it's fine. But still I'm tagging with RFC for this initial version.

Smoke tested on anonymous mem on a fake swap failure. Please have a look, thanks.

Peter Xu (2):
mm: Always compile in pte markers
mm: Use pte markers for swap errors

 include/linux/swap.h    | 16 ++++----------
 include/linux/swapops.h | 49 +++++++++--------------------------------
 mm/Kconfig              |  7 ------
 mm/memory.c             | 13 ++++++-----
 mm/shmem.c              |  2 +-
 mm/swapfile.c           |  2 +-
 6 files changed, 23 insertions(+), 66 deletions(-)
Signature · 1 line
2.37.3