]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/xen/balloon.c
xen/balloon: fix ballooned page accounting without hotplug enabled
[mirror_ubuntu-bionic-kernel.git] / drivers / xen / balloon.c
index 71a6deeb4e71414dd13a52a7c83c46bffa8572be..3f9260af701f0ef5373e87fb732b0fbf71fbbf7e 100644 (file)
@@ -401,7 +401,8 @@ static struct notifier_block xen_memory_nb = {
 #else
 static enum bp_state reserve_additional_memory(void)
 {
-       balloon_stats.target_pages = balloon_stats.current_pages;
+       balloon_stats.target_pages = balloon_stats.current_pages +
+                                    balloon_stats.target_unpopulated;
        return BP_ECANCELED;
 }
 #endif /* CONFIG_XEN_BALLOON_MEMORY_HOTPLUG */