diff options
-rw-r--r-- | arch/x86/mm/numa_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_32.c b/arch/x86/mm/numa_32.c index 84aac47c3887..50e82507eab4 100644 --- a/arch/x86/mm/numa_32.c +++ b/arch/x86/mm/numa_32.c | |||
@@ -287,7 +287,8 @@ static __init unsigned long calculate_numa_remap_pages(void) | |||
287 | node_end_pfn[nid] = max_pfn; | 287 | node_end_pfn[nid] = max_pfn; |
288 | 288 | ||
289 | /* ensure the remap includes space for the pgdat. */ | 289 | /* ensure the remap includes space for the pgdat. */ |
290 | size = node_remap_size[nid] + sizeof(pg_data_t); | 290 | size = node_remap_size[nid]; |
291 | size += ALIGN(sizeof(pg_data_t), PAGE_SIZE); | ||
291 | 292 | ||
292 | /* convert size to large (pmd size) pages, rounding up */ | 293 | /* convert size to large (pmd size) pages, rounding up */ |
293 | size = (size + LARGE_PAGE_BYTES - 1) / LARGE_PAGE_BYTES; | 294 | size = (size + LARGE_PAGE_BYTES - 1) / LARGE_PAGE_BYTES; |