summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2013-09-11 23:21:44 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-12 00:57:36 +0200
commitc33bc315fd921b1179a1d3df5756e0da6fb73944 (patch)
tree7130a2ac95c993aebb19d4a5e777f761744a06ac /mm/page_alloc.c
parentlib/genalloc.c: fix overflow of ending address of memory chunk (diff)
downloadlinux-c33bc315fd921b1179a1d3df5756e0da6fb73944.tar.xz
linux-c33bc315fd921b1179a1d3df5756e0da6fb73944.zip
mm: use zone_end_pfn() instead of zone_start_pfn+spanned_pages
Use "zone_end_pfn()" instead of "zone->zone_start_pfn + zone->spanned_pages". Simplify the code, no functional change. [akpm@linux-foundation.org: fix build] Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Cc: Cody P Schafer <cody@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions