]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/balloon: Only mark a page as managed when it is released
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 9 Dec 2016 17:10:22 +0000 (17:10 +0000)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:31 +0000 (15:55 -0500)
commitac63096be14ec0ba52fc173f9a88bd959ce73f9c
treea73f03d3bcc2f586f01fc78fd5f64a027407a10c
parent83d1825ced7fa221ec54ddab4a26e8e2465f3b30
xen/balloon: Only mark a page as managed when it is released

Only mark a page as managed when it is released back to the allocator.
This ensures that the managed page count does not get falsely increased
when a VM is running. Correspondingly change it so that pages are
marked as unmanaged after getting them from the allocator.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
OraBug: 25497392

(cherry picked from commit 709613ad2b3c9eaeb2a3e24284b7c8feffc17326)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/balloon.c