]> err.no Git - linux-2.6/commit
memory-hotplug: don't calculate vm_total_pages twice when rebuilding zonelists in...
authorKent Liu <kent.liu@linux.intel.com>
Thu, 24 Jul 2008 04:28:18 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:21 +0000 (10:47 -0700)
commit2f7f24eca31c4fc2fdb134b2ef743ccd67cfb9a9
tree6c2169b8a7b160cbacdc41f376a4e2dea993e579
parentaf370fb8cb3031f20438f246798d5f0d98089f29
memory-hotplug: don't calculate vm_total_pages twice when rebuilding zonelists in online_pages()

If zonelist is required to be rebuilt in online_pages(), there is no need
to recalculate vm_total_pages in that function, as it has been updated in
the call build_all_zonelists().

Signed-off-by: Kent Liu <kent.liu@linux.intel.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c