Commit 04ccbdc3 authored by David Hildenbrand's avatar David Hildenbrand Committed by Boris Ostrovsky
Browse files

xen/balloon: Clear PG_offline in balloon_retrieve()

Let's move the clearing to balloon_retrieve(). In
bp_state increase_reservation(), we now clear the flag a little earlier
than before, however, this should not matter for XEN.

Suggested-by: default avatarBoris Ostrovsky <>
Cc: Boris Ostrovsky <>
Cc: Juergen Gross <>
Cc: Stefano Stabellini <>
Signed-off-by: default avatarDavid Hildenbrand <>
Reviewed-by: default avatarBoris Ostrovsky <>
Signed-off-by: default avatarBoris Ostrovsky <>
parent 59b52f10
......@@ -189,6 +189,7 @@ static struct page *balloon_retrieve(bool require_lowmem)
return page;
......@@ -440,7 +441,6 @@ static enum bp_state increase_reservation(unsigned long nr_pages)
xenmem_reservation_va_mapping_update(1, &page, &frame_list[i]);
/* Relinquish the page back to the allocator. */
......@@ -606,7 +606,6 @@ int alloc_xenballooned_pages(int nr_pages, struct page **pages)
while (pgno < nr_pages) {
page = balloon_retrieve(true);
if (page) {
pages[pgno++] = page;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment