mm/memory hotplug: init the zone's size when calculating node totalpages
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 24 Jun 2015 23:57:02 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:42 +0000 (17:49 -0700)
commitfebd5949e134e279bde927353dc705ce41b18e2d
treec01f3548e4a9411838161b2e275b8c731ee1799c
parent641844f5616d7c6597309f560838f996466d7aac
mm/memory hotplug: init the zone's size when calculating node totalpages

Init the zone's size when calculating node totalpages to avoid duplicated
operations in free_area_init_core().

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c