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

Sidhartha Kumar
2022-11-01T22:31:47Z

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/20220922154207.1575343-1-sidhartha.kumar@oracle.com/

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(-)

--
2.31.1