Skip to content

Convert deactivate_page() to folio_deactivate()

Vishal Moola (Oracle) damon linux-mm lkml 4 versions – Applied

Status from this message: [merged mm-stable] mm-swap-convert-deactivate_page-to-folio_deactivate.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyApplied 4/4
  2. v34 patches 6 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v4 from the cover letter

Rebased onto latest mm-unstable - fixes madvise and damon conflicts

Patches in v4 All 4 applied

#Subject and filesSizeRepliesApplied
1/4mm/memory: Add vm_normal_folio()include/linux/mm.h mm/memory.c+12 -00 repliesApplied
2/4madvise: Convert madvise_cold_or_pageout_pte_range() to use foliosmm/madvise.c+49 -490 repliesApplied
3/4mm/damon: Convert damon_pa_mark_accessed_or_deactivate() to use foliosmm/damon/paddr.c+8 -60 repliesApplied
4/4mm/swap: Convert deactivate_page() to folio_deactivate()include/linux/swap.h mm/damon/paddr.c mm/madvise.c +1 more+10 -121 replyApplied

Reviews trailers per patch

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

PatchMatthew Wilcox (Oracle)SeongJae Park
1/4R-b
2/4R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] Convert deactivate_page() to folio_deactivate()

Deactivate_page() has already been converted to use folios. This patch series modifies the callers of deactivate_page() to use folios. It also introduces vm_normal_folio() to assist with folio conversions, and converts deactivate_page() to folio_deactivate() which takes in a folio.

---
v4:
Rebased onto latest mm-unstable - fixes madvise and damon conflicts

v3:
Introduce vm_normal_folio() wrapper function to return a folio Fix madvise missing folio_mapcount()

v2:
Fix a compilation issue
Some minor rewording of comments/descriptions

Vishal Moola (Oracle) (4):
mm/memory: Add vm_normal_folio()
madvise: Convert madvise_cold_or_pageout_pte_range() to use folios mm/damon: Convert damon_pa_mark_accessed_or_deactivate() to use folios mm/swap: Convert deactivate_page() to folio_deactivate()

 include/linux/mm.h   |  2 +
 include/linux/swap.h |  2 +-
 mm/damon/paddr.c     | 14 ++++---
 mm/madvise.c         | 98 ++++++++++++++++++++++----------------------
 mm/memory.c          | 10 +++++
 mm/swap.c            | 14 +++----
 6 files changed, 76 insertions(+), 64 deletions(-)
Signature · 1 line
2.38.1