Skip to content

Commit 85a0bda

Browse files
author
Fox Snowpatch
committed
1 parent 5165c17 commit 85a0bda

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

arch/arm64/mm/hugetlbpage.c

-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ void __init arm64_hugetlb_cma_reserve(void)
4545
else
4646
order = CONT_PMD_SHIFT - PAGE_SHIFT;
4747

48-
/*
49-
* HugeTLB CMA reservation is required for gigantic
50-
* huge pages which could not be allocated via the
51-
* page allocator. Just warn if there is any change
52-
* breaking this assumption.
53-
*/
54-
WARN_ON(order <= MAX_PAGE_ORDER);
5548
hugetlb_cma_reserve(order);
5649
}
5750
#endif /* CONFIG_CMA */

arch/powerpc/mm/hugetlbpage.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,6 @@ void __init gigantic_hugetlb_cma_reserve(void)
614614
*/
615615
order = mmu_psize_to_shift(MMU_PAGE_16G) - PAGE_SHIFT;
616616

617-
if (order) {
618-
VM_WARN_ON(order <= MAX_PAGE_ORDER);
617+
if (order)
619618
hugetlb_cma_reserve(order);
620-
}
621619
}

mm/hugetlb.c

+7
Original file line numberDiff line numberDiff line change
@@ -7695,6 +7695,13 @@ void __init hugetlb_cma_reserve(int order)
76957695
bool node_specific_cma_alloc = false;
76967696
int nid;
76977697

7698+
/*
7699+
* HugeTLB CMA reservation is required for gigantic
7700+
* huge pages which could not be allocated via the
7701+
* page allocator. Just warn if there is any change
7702+
* breaking this assumption.
7703+
*/
7704+
VM_WARN_ON(order <= MAX_PAGE_ORDER);
76987705
cma_reserve_called = true;
76997706

77007707
if (!hugetlb_cma_size)

0 commit comments

Comments
 (0)