aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/mm/contig.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/mm/contig.c')
-rw-r--r--arch/ia64/mm/contig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c
index 2a88cdd6d924..8919fed9666a 100644
--- a/arch/ia64/mm/contig.c
+++ b/arch/ia64/mm/contig.c
@@ -277,7 +277,8 @@ paging_init (void)
277 277
278 /* allocate virtual_mem_map */ 278 /* allocate virtual_mem_map */
279 279
280 map_size = PAGE_ALIGN(max_low_pfn * sizeof(struct page)); 280 map_size = PAGE_ALIGN(ALIGN(max_low_pfn, MAX_ORDER_NR_PAGES) *
281 sizeof(struct page));
281 vmalloc_end -= map_size; 282 vmalloc_end -= map_size;
282 vmem_map = (struct page *) vmalloc_end; 283 vmem_map = (struct page *) vmalloc_end;
283 efi_memmap_walk(create_mem_map_page_table, NULL); 284 efi_memmap_walk(create_mem_map_page_table, NULL);