Skip to content

mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups

David Hildenbrand linux-arm-kernel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review 3 of 4 applied

Patches in v1 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4mm/swap: stop using page->private on tail pages for THP_SWAParch/arm64/mm/mteswap.c include/linux/mm_types.h include/linux/swap.h +5 more+26 -289 replies
2/4mm/swap: use dedicated entry for swap in folioinclude/linux/mm_types.h include/linux/swap.h+15 -131 replyApplied
3/4mm/swap: inline folio_set_swap_entry() and folio_swap_entry()include/linux/swap.h mm/memory.c mm/shmem.c +5 more+13 -241 replyApplied
4/4mm/huge_memory: work on folio->swap instead of page->private when splitting foliomm/huge_memory.c+15 -141 replyApplied

Reviews trailers per patch

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

PatchCatalin MarinasChris LiYosry Ahmed
1/4A-b R-b
2/4R-b
3/4R-b
4/4R-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 mm-unstable v1 0/4] mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups

This series stops using page->private on tail pages for THP_SWAP, replaces folio->private by folio->swap for swapcache folios, and starts using "new_folio" for tail pages that we are splitting to remove the usage of page->private for swapcache handling completely.

@Willy, I added your SOB on patch #2 from [1], hoping that's ok.

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

Cc Andrew Morton <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Peter Xu <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Dan Streetman <[email protected]>
Cc Vitaly Wool <[email protected]>

David Hildenbrand (3):
mm/swap: stop using page->private on tail pages for THP_SWAP mm/swap: inline folio_set_swap_entry() and folio_swap_entry() mm/huge_memory: work on folio->swap instead of page->private when
splitting folio

Matthew Wilcox (1):
mm/swap: use dedicated entry for swap in folio

 arch/arm64/mm/mteswap.c  |  5 +++--
 include/linux/mm_types.h | 35 ++++++++++++++---------------------
 include/linux/swap.h     | 12 +++++-------
 mm/huge_memory.c         | 40 +++++++++++++++++++---------------------
 mm/memory.c              |  4 ++--
 mm/rmap.c                |  2 +-
 mm/shmem.c               |  6 +++---
 mm/swap_state.c          |  6 +++---
 mm/swapfile.c            |  6 +++---
 mm/util.c                |  2 +-
 mm/vmscan.c              |  2 +-
 mm/zswap.c               |  4 ++--
 12 files changed, 57 insertions(+), 67 deletions(-)
Signature · 1 line
2.41.0