Skip to content

mm: hugetlb+THP folio and migration cleanups

David Hildenbrand linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-hugetlb-use-folio-lru-int-demote_free_hugetlb_folios.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyApplied 6/6
  2. v16 patches 14 repliesSuperseded

Changes in v2 from the cover letter

* "mm/hugetlb: rename isolate_hugetlb() to folio_isolate_hugetlb()"
* Use "-" vs. ":" in kerneldoc
* "mm/migrate: don't call folio_putback_active_hugetlb() on dst hugetlb folio"
* Also care about activelist and adjust patch description
* "mm/hugetlb-cgroup: convert hugetlb_cgroup_css_offline() to work on folios"
* Extend patch description
* "mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()"
* Also use "new_folio->mapping = NULL", and calculate new_folio like __split_huge_page_tail(), adding also a comment.
* Adjust patch description

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/huge_memory: convert has_hwpoisoned into a pure folio flaginclude/linux/page-flags.h mm/huge_memory.c+3 -50 repliesApplied
2/6mm/hugetlb: rename isolate_hugetlb() to folio_isolate_hugetlb()include/linux/hugetlb.h mm/gup.c mm/hugetlb.c +2 more+27 -100 repliesApplied
3/6mm/migrate: don't call folio_putback_active_hugetlb() on dst hugetlb foliomm/hugetlb.c mm/migrate.c+14 -40 repliesApplied
4/6mm/hugetlb: rename folio_putback_active_hugetlb() to folio_putback_hugetlb()include/linux/hugetlb.h mm/hugetlb.c mm/migrate.c+18 -70 repliesApplied
5/6mm/hugetlb-cgroup: convert hugetlb_cgroup_css_offline() to work on foliosmm/hugetlb_cgroup.c+8 -90 repliesApplied
6/6mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()mm/hugetlb.c+5 -31 replyApplied

Reviews trailers per patch

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

PatchMatthew Wilcox (Oracle)Baolin WangSidhartha Kumar
1/6R-b
2/6R-b R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-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 v2 thread

Cover letter [PATCH v2 0/6] mm: hugetlb+THP folio and migration cleanups

Some cleanups around more folio conversion and migration handling that I collected working on random stuff.

Patch #2->#6 were previous sent as part of [1], but I think they make sense independent of that.

[1] https://lkml.kernel.org/r/[email protected]

v1 -> v2:
* "mm/hugetlb: rename isolate_hugetlb() to folio_isolate_hugetlb()"
* Use "-" vs. ":" in kerneldoc
* "mm/migrate: don't call folio_putback_active_hugetlb() on dst hugetlb folio"
* Also care about activelist and adjust patch description
* "mm/hugetlb-cgroup: convert hugetlb_cgroup_css_offline() to work on folios"
* Extend patch description
* "mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()"
* Also use "new_folio->mapping = NULL", and calculate new_folio like __split_huge_page_tail(), adding also a comment.
* Adjust patch description

Cc Andrew Morton <[email protected]>
Cc Muchun Song <[email protected]>
Cc "Matthew Wilcox (Oracle)" <[email protected]>

David Hildenbrand (6):
mm/huge_memory: convert has_hwpoisoned into a pure folio flag mm/hugetlb: rename isolate_hugetlb() to folio_isolate_hugetlb() mm/migrate: don't call folio_putback_active_hugetlb() on dst hugetlb
folio
mm/hugetlb: rename folio_putback_active_hugetlb() to
folio_putback_hugetlb()
mm/hugetlb-cgroup: convert hugetlb_cgroup_css_offline() to work on
folios
mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()

 include/linux/hugetlb.h    |  8 +++---
 include/linux/page-flags.h |  6 ++---
 mm/gup.c                   |  2 +-
 mm/huge_memory.c           |  2 +-
 mm/hugetlb.c               | 54 +++++++++++++++++++++++++++++++++-----
 mm/hugetlb_cgroup.c        | 17 ++++++------
 mm/mempolicy.c             |  2 +-
 mm/migrate.c               | 20 +++++++-------
 8 files changed, 74 insertions(+), 37 deletions(-)

base-commit: 0703fa3785f1b969a3a98fc9bb3e4ae5062684ea

Signature · 1 line
2.47.1