mm-hugetlb-move-huge_boot_pages-list-init-to-hugetlb_bootmem_alloc.patch removed from -mm tree
The quilt patch titled
Subject: mm/hugetlb: move huge_boot_pages list init to hugetlb_bootmem_alloc
has been removed from the -mm tree. Its filename was
mm-hugetlb-move-huge_boot_pages-list-init-to-hugetlb_bootmem_alloc.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Frank van der Linden <[email protected]>
Subject: mm/hugetlb: move huge_boot_pages list init to hugetlb_bootmem_alloc
Date: Fri, 28 Feb 2025 18:29:17 +0000
Instead of initializing the per-node hugetlb bootmem pages list from the alloc function, we can now do it in a somewhat cleaner way, since there is an explicit hugetlb_bootmem_alloc function. Initialize the lists there.
---
mm/hugetlb.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-move-huge_boot_pages-list-init-to-hugetlb_bootmem_alloc +7 -12
@@ -3586,7 +3586,6 @@ static unsigned long __init hugetlb_pagestatic void __init hugetlb_hstate_alloc_pages (struct hstate *h) {unsigned long allocated; -static bool initialized__initdata ;/* skip gigantic hugepages allocation if hugetlb_cma enabled */ if (hstate_is_gigantic (h) && hugetlb_cma_size) {
@@ -3594,17 +3593,6 @@ static void __init hugetlb_hstate_alloc_return ; } -/* hugetlb_hstate_alloc_pages will be called many times, initialize huge_boot_pages once */ -if (!initialized) { -int i =0 ; - -for (i =0 ; i <MAX_NUMNODES ; i++) -INIT_LIST_HEAD (&huge_boot_pages[i]); - h->next_nid_to_alloc = first_online_node; - h->next_nid_to_free = first_online_node; - initialized = true; - } -/* do node specific alloc */ if (hugetlb_hstate_alloc_pages_specific_nodes (h))return ;
@@ -4928,13 +4916,20 @@ bool __init hugetlb_bootmem_allocated(vovoid __init hugetlb_bootmem_alloc (void ) {struct hstate *h; +int i;if (__hugetlb_bootmem_allocated)return ; +for (i =0 ; i <MAX_NUMNODES ; i++) +INIT_LIST_HEAD (&huge_boot_pages[i]); +hugetlb_parse_params ();for_each_hstate (h) { + h->next_nid_to_alloc = first_online_node; + h->next_nid_to_free = first_online_node; +if (hstate_is_gigantic (h))hugetlb_hstate_alloc_pages (h); }
_
Patches currently in -mm which might be from [email protected] are