mm: use pgdat_end_pfn() to simplify the code in others
authorXishi Qiu <qiuxishi@huawei.com>
Tue, 12 Nov 2013 23:07:19 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:03 +0000 (12:09 +0900)
commit83285c72e08c42848808039ef2d3b67a1bb88832
tree96deaa3deb9a9f5b5b3c5b03f5982eeaea401670
parent6408068ee6ce9d80d66908a2c01a24ee88afd47d
mm: use pgdat_end_pfn() to simplify the code in others

Use "pgdat_end_pfn()" instead of "pgdat->node_start_pfn +
pgdat->node_spanned_pages".  Simplify the code, no functional change.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/kcore.c
mm/bootmem.c
mm/memory_hotplug.c