[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Keep totalram_pages in sync with current_pages in balloon driver.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID f55d6c299c7e2003fd97f1c7263f9f5195c0dca0 # Parent 6cc6b0ec9fa5eb88b8d95c0154b19b3cb5765e0f Keep totalram_pages in sync with current_pages in balloon driver. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r 6cc6b0ec9fa5 -r f55d6c299c7e linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Wed Mar 8 10:48:34 2006 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Wed Mar 8 10:51:17 2006 @@ -468,6 +468,7 @@ return -1; current_pages = min(xen_start_info->nr_pages, max_pfn); + totalram_pages = current_pages; target_pages = current_pages; balloon_low = 0; balloon_high = 0; @@ -547,6 +548,7 @@ &init_mm, vstart, PAGE_SIZE << order, dealloc_pte_fn, NULL); BUG_ON(ret); current_pages -= 1UL << order; + totalram_pages = current_pages; balloon_unlock(flags); schedule_work(&balloon_worker); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |