Skip to content

convert hugetlb_cgroup helper functions to folios

Sidhartha Kumar linux-mm lkml llvm oe-kbuild-all 2 versions – Applied

Status from this message: [merged mm-stable] mm-hugeltb_cgroup-convert-hugetlb_cgroup_commit_charge-to-folios.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 16 repliesApplied 9/9
  2. v19 patches 12 repliesSuperseded

Changes in v2 from the cover letter

-fix folio_test_hugetlb_freed() check in alloc_and_dissolve_huge_page -add more folio conversions to unmap_and_move_huge_page in patch 9 -collect review-bys from Mike Kravetz
-rebased on next-20221101 and mm-unstable

Patches in v2 All 9 applied

#Subject and filesSizeRepliesApplied
1/9mm/hugetlb_cgroup: convert __set_hugetlb_cgroup() to foliosinclude/linux/hugetlb_cgroup.h mm/hugetlb_cgroup.c+9 -91 replyApplied
2/9mm/hugetlb_cgroup: convert hugetlb_cgroup_from_page() to foliosinclude/linux/hugetlb_cgroup.h mm/hugetlb.c mm/hugetlb_cgroup.c+31 -261 replyApplied
3/9mm/hugetlb_cgroup: convert set_hugetlb_cgroup*() to foliosinclude/linux/hugetlb_cgroup.h mm/hugetlb.c mm/hugetlb_cgroup.c+31 -254 repliesApplied
4/9mm/hugetlb_cgroup: convert hugetlb_cgroup_migrate to foliosinclude/linux/hugetlb_cgroup.h mm/hugetlb.c mm/hugetlb_cgroup.c+8 -101 replyApplied
5/9mm/hugetlb: convert isolate_or_dissolve_huge_page to foliosmm/hugetlb.c+6 -75 repliesApplied
6/9mm/hugetlb: convert free_huge_page to foliosmm/hugetlb.c+14 -131 replyApplied
7/9mm/hugetlb_cgroup: convert hugetlb_cgroup_uncharge_page() to foliosinclude/linux/hugetlb_cgroup.h mm/hugetlb.c mm/hugetlb_cgroup.c+27 -251 replyApplied
8/9mm/hugeltb_cgroup: convert hugetlb_cgroup_commit_charge*() to foliosmm/hugetlb_cgroup.c+10 -61 replyApplied
9/9mm/hugetlb: convert move_hugetlb_state() to foliosinclude/linux/hugetlb.h mm/hugetlb.c mm/migrate.c+17 -151 replyApplied

Reviews trailers per patch

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

PatchMike KravetzMuchun Song
1/9R-b R-b
2/9R-b
3/9R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/9] convert hugetlb_cgroup helper functions to folios

This patch series continues the conversion of hugetlb code from being managed in pages to folios by converting many of the hugetlb_cgroup helper functions to use folios. This allows the core hugetlb functions to pass in a folio to these helper functions.

This series depends on my previous patch series which begins the hugetlb folio conversion[1], both series pass the LTP hugetlb test cases.

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

v1 -> v2
-fix folio_test_hugetlb_freed() check in alloc_and_dissolve_huge_page -add more folio conversions to unmap_and_move_huge_page in patch 9 -collect review-bys from Mike Kravetz
-rebased on next-20221101 and mm-unstable

Sidhartha Kumar (9):
mm/hugetlb_cgroup: convert __set_hugetlb_cgroup() to folios mm/hugetlb_cgroup: convert hugetlb_cgroup_from_page() to folios mm/hugetlb_cgroup: convert set_hugetlb_cgroup*() to folios mm/hugetlb_cgroup: convert hugetlb_cgroup_migrate to folios mm/hugetlb: convert isolate_or_dissolve_huge_page to folios mm/hugetlb: convert free_huge_page to folios mm/hugetlb_cgroup: convert hugetlb_cgroup_uncharge_page() to folios mm/hugeltb_cgroup: convert hugetlb_cgroup_commit_charge*() to folios mm/hugetlb: convert move_hugetlb_state() to folios

 include/linux/hugetlb.h        |   6 +-
 include/linux/hugetlb_cgroup.h |  85 ++++++++++++------------
 mm/hugetlb.c                   | 115 ++++++++++++++++++---------------
 mm/hugetlb_cgroup.c            |  63 +++++++++---------
 mm/migrate.c                   |  12 ++--
 5 files changed, 149 insertions(+), 132 deletions(-)
Signature · 1 line
2.31.1