mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Boris Ostrovsky <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Stefano Stabellini <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
This commit is contained in:
parent
59b52f105f
commit
04ccbdc390
1 changed files with 1 additions and 2 deletions
|
|
@ -189,6 +189,7 @@ static struct page *balloon_retrieve(bool require_lowmem)
|
|||
else
|
||||
balloon_stats.balloon_low--;
|
||||
|
||||
__ClearPageOffline(page);
|
||||
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. */
|
||||
__ClearPageOffline(page);
|
||||
free_reserved_page(page);
|
||||
}
|
||||
|
||||
|
|
@ -606,7 +606,6 @@ int alloc_xenballooned_pages(int nr_pages, struct page **pages)
|
|||
while (pgno < nr_pages) {
|
||||
page = balloon_retrieve(true);
|
||||
if (page) {
|
||||
__ClearPageOffline(page);
|
||||
pages[pgno++] = page;
|
||||
#ifdef CONFIG_XEN_HAVE_PVMMU
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue