Commit c1f19495 authored by Cody P Schafer's avatar Cody P Schafer Committed by Linus Torvalds

mm/memory_hotplug: use pgdat_end_pfn() instead of open coding the same.

Replace open coded pgdat_end_pfn() with helper function.
Signed-off-by: default avatarCody P Schafer <cody@linux.vnet.ibm.com>
Cc: David Hansen <dave@linux.vnet.ibm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 64dd1b29
...@@ -218,7 +218,7 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat) ...@@ -218,7 +218,7 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat)
} }
pfn = pgdat->node_start_pfn; pfn = pgdat->node_start_pfn;
end_pfn = pfn + pgdat->node_spanned_pages; end_pfn = pgdat_end_pfn(pgdat);
/* register_section info */ /* register_section info */
for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment