|
@@ -938,8 +938,7 @@ static void __init mark_reserved_regions_for_nid(int nid)
|
|
unsigned long start_pfn = physbase >> PAGE_SHIFT;
|
|
unsigned long start_pfn = physbase >> PAGE_SHIFT;
|
|
unsigned long end_pfn = PFN_UP(physbase + size);
|
|
unsigned long end_pfn = PFN_UP(physbase + size);
|
|
struct node_active_region node_ar;
|
|
struct node_active_region node_ar;
|
|
- unsigned long node_end_pfn = node->node_start_pfn +
|
|
|
|
- node->node_spanned_pages;
|
|
|
|
|
|
+ unsigned long node_end_pfn = pgdat_end_pfn(node);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Check to make sure that this memblock.reserved area is
|
|
* Check to make sure that this memblock.reserved area is
|