File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ void __init arm64_hugetlb_cma_reserve(void)
45
45
else
46
46
order = CONT_PMD_SHIFT - PAGE_SHIFT ;
47
47
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 );
55
48
hugetlb_cma_reserve (order );
56
49
}
57
50
#endif /* CONFIG_CMA */
Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ void __init gigantic_hugetlb_cma_reserve(void)
614
614
*/
615
615
order = mmu_psize_to_shift (MMU_PAGE_16G ) - PAGE_SHIFT ;
616
616
617
- if (order ) {
618
- VM_WARN_ON (order <= MAX_PAGE_ORDER );
617
+ if (order )
619
618
hugetlb_cma_reserve (order );
620
- }
621
619
}
Original file line number Diff line number Diff line change @@ -7695,6 +7695,13 @@ void __init hugetlb_cma_reserve(int order)
7695
7695
bool node_specific_cma_alloc = false;
7696
7696
int nid ;
7697
7697
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 );
7698
7705
cma_reserve_called = true;
7699
7706
7700
7707
if (!hugetlb_cma_size )
You can’t perform that action at this time.
0 commit comments