mm-hugetlb-use-online-nodes-for-bootmem-allocation.patch removed from -mm tree
The quilt patch titled
Subject: mm/hugetlb: use online nodes for bootmem allocation
has been removed from the -mm tree. Its filename was
mm-hugetlb-use-online-nodes-for-bootmem-allocation.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: use online nodes for bootmem allocation
Date: Fri, 28 Feb 2025 18:29:07 +0000
Later commits will move hugetlb bootmem allocation to earlier in init, when N_MEMORY has not yet been set on nodes. Use online nodes instead. At most, this wastes just a few cycles once during boot (and most likely none).
---
mm/hugetlb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-use-online-nodes-for-bootmem-allocation +3 -3
@@ -3164,7 +3164,7 @@ int __alloc_bootmem_huge_page(struct hst goto found; }/* allocate from next node when distributing huge pages */ -for_each_node_mask_to_alloc (&h->next_nid_to_alloc, nr_nodes, node, &node_states[N_MEMORY ]) { +for_each_node_mask_to_alloc (&h->next_nid_to_alloc, nr_nodes, node, &node_states[N_ONLINE ]) { m =memblock_alloc_try_nid_raw (huge_page_size (h),huge_page_size (h),0 ,MEMBLOCK_ALLOC_ACCESSIBLE , node);
@@ -4558,8 +4558,8 @@ void __init hugetlb_add_hstate(unsignedfor (i =0 ; i <MAX_NUMNODES ; ++i)INIT_LIST_HEAD (&h->hugepage_freelists[i]);INIT_LIST_HEAD (&h->hugepage_activelist); - h->next_nid_to_alloc = first_memory_node; - h->next_nid_to_free = first_memory_node; + h->next_nid_to_alloc = first_online_node; + h->next_nid_to_free = first_online_node;snprintf (h->name,HSTATE_NAME_LEN ,"hugepages-%lukB" ,huge_page_size (h)/SZ_1K );
_
Patches currently in -mm which might be from [email protected] are