|
@@ -180,7 +180,6 @@ static void __balloon_append(struct page *page)
|
|
static void balloon_append(struct page *page)
|
|
static void balloon_append(struct page *page)
|
|
{
|
|
{
|
|
__balloon_append(page);
|
|
__balloon_append(page);
|
|
- adjust_managed_page_count(page, -1);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/* balloon_retrieve: rescue a page from the balloon, if it is not empty. */
|
|
/* balloon_retrieve: rescue a page from the balloon, if it is not empty. */
|
|
@@ -201,8 +200,6 @@ static struct page *balloon_retrieve(bool require_lowmem)
|
|
else
|
|
else
|
|
balloon_stats.balloon_low--;
|
|
balloon_stats.balloon_low--;
|
|
|
|
|
|
- adjust_managed_page_count(page, 1);
|
|
|
|
-
|
|
|
|
return page;
|
|
return page;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -478,7 +475,7 @@ static enum bp_state increase_reservation(unsigned long nr_pages)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* Relinquish the page back to the allocator. */
|
|
/* Relinquish the page back to the allocator. */
|
|
- __free_reserved_page(page);
|
|
|
|
|
|
+ free_reserved_page(page);
|
|
}
|
|
}
|
|
|
|
|
|
balloon_stats.current_pages += rc;
|
|
balloon_stats.current_pages += rc;
|
|
@@ -509,6 +506,7 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp)
|
|
state = BP_EAGAIN;
|
|
state = BP_EAGAIN;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ adjust_managed_page_count(page, -1);
|
|
scrub_page(page);
|
|
scrub_page(page);
|
|
list_add(&page->lru, &pages);
|
|
list_add(&page->lru, &pages);
|
|
}
|
|
}
|