diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1697ff0cc53a..04306b9de90d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1271,9 +1271,9 @@ int __weak alloc_bootmem_huge_page(struct hstate *h) | |||
1271 | for_each_node_mask_to_alloc(h, nr_nodes, node, &node_states[N_MEMORY]) { | 1271 | for_each_node_mask_to_alloc(h, nr_nodes, node, &node_states[N_MEMORY]) { |
1272 | void *addr; | 1272 | void *addr; |
1273 | 1273 | ||
1274 | addr = __alloc_bootmem_node_nopanic(NODE_DATA(node), | 1274 | addr = memblock_virt_alloc_try_nid_nopanic( |
1275 | huge_page_size(h), huge_page_size(h), 0); | 1275 | huge_page_size(h), huge_page_size(h), |
1276 | 1276 | 0, BOOTMEM_ALLOC_ACCESSIBLE, node); | |
1277 | if (addr) { | 1277 | if (addr) { |
1278 | /* | 1278 | /* |
1279 | * Use the beginning of the huge page to store the | 1279 | * Use the beginning of the huge page to store the |
@@ -1313,8 +1313,8 @@ static void __init gather_bootmem_prealloc(void) | |||
1313 | 1313 | ||
1314 | #ifdef CONFIG_HIGHMEM | 1314 | #ifdef CONFIG_HIGHMEM |
1315 | page = pfn_to_page(m->phys >> PAGE_SHIFT); | 1315 | page = pfn_to_page(m->phys >> PAGE_SHIFT); |
1316 | free_bootmem_late((unsigned long)m, | 1316 | memblock_free_late(__pa(m), |
1317 | sizeof(struct huge_bootmem_page)); | 1317 | sizeof(struct huge_bootmem_page)); |
1318 | #else | 1318 | #else |
1319 | page = virt_to_page(m); | 1319 | page = virt_to_page(m); |
1320 | #endif | 1320 | #endif |