Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen/balloon: Move dec_totalhigh_pages() from __balloon_append() to ba…
…lloon_append() git commit 9be4d45 (xen: add extra pages to balloon) splited balloon_append() into two functions (balloon_append() and __balloon_append()) and left decrementation of totalram_pages counter in __balloon_append(). In this situation if __balloon_append() is called on i386 with highmem page referenced then totalhigh_pages is decremented, however, it should not. This patch corrects that issue and moves dec_totalhigh_pages() from __balloon_append() to balloon_append(). Now totalram_pages and totalhigh_pages are decremented simultaneously only when balloon_append() is called. Acked-by: Ian Campbell <[email protected]> Acked-by: Daniel De Graaf <[email protected]> Signed-off-by: Daniel Kiper <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
- Loading branch information