]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/balloon: rationalize memory hotplug stats
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 11:08:20 +0000 (12:08 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:00:59 +0000 (02:00 +0100)
commite85ccb854e453c72da17aa8c6d97850a45a9b08c
treeefe73e2878883a8c3676ad8aef4ff93556caab09
parent48f053f869805626f24c6e39691a77ac52f97aa5
xen/balloon: rationalize memory hotplug stats

The stats used for memory hotplug make no sense and are fiddled with
in odd ways.  Remove them and introduce total_pages to track the total
number of pages (both populated and unpopulated) including those within
hotplugged regions (note that this includes not yet onlined pages).

This will be used in a subsequent commit (xen/balloon: only hotplug
additional memory if required) when deciding whether additional memory
needs to be hotplugged.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
(cherry picked from commit de5a77d8422fc7ed0b2f4349bceb65a1a639e5b2)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/balloon.c
include/xen/balloon.h