]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/hugetlb: increase use of folios in alloc_huge_page()
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Fri, 13 Jan 2023 22:30:54 +0000 (16:30 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 23:35:58 +0000 (15:35 -0800)
commita9b2717a1b5cee7552122c3ef5f75e6303615563
treecf600f59401cccb03ad4b41f1fa837092feb6f53
parenta58d8199150dfe60f7be048f1ff0678a158f0739
mm/hugetlb: increase use of folios in alloc_huge_page()

Change hugetlb_cgroup_commit_charge{,_rsvd}(), dequeue_huge_page_vma() and
alloc_buddy_huge_page_with_mpol() to use folios so alloc_huge_page() is
cleaned by operating on folios until its return.

Link: https://lkml.kernel.org/r/20230113223057.173292-6-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/hugetlb_cgroup.h
mm/hugetlb.c
mm/hugetlb_cgroup.c