[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] balloon: Fix building as a module (totalhigh_pages is not exported to
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1184252695 -3600 # Node ID c9cbeaa471402fc2ba786b83cda9184975cb69b8 # Parent 5557a81f0376eacab33e2783012f698b5ff54d74 balloon: Fix building as a module (totalhigh_pages is not exported to modules). Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- drivers/xen/balloon/balloon.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff -r 5557a81f0376 -r c9cbeaa47140 drivers/xen/balloon/balloon.c --- a/drivers/xen/balloon/balloon.c Thu Jul 12 09:53:09 2007 +0100 +++ b/drivers/xen/balloon/balloon.c Thu Jul 12 16:04:55 2007 +0100 @@ -83,7 +83,15 @@ static unsigned long frame_list[PAGE_SIZ /* VM /proc information for memory */ extern unsigned long totalram_pages; + +#ifndef MODULE extern unsigned long totalhigh_pages; +#define inc_totalhigh_pages() (totalhigh_pages++) +#define dec_totalhigh_pages() (totalhigh_pages--) +#else +#define inc_totalhigh_pages() ((void)0) +#define dec_totalhigh_pages() ((void)0) +#endif /* List of ballooned pages, threaded through the mem_map array. */ static LIST_HEAD(ballooned_pages); @@ -119,7 +127,7 @@ static void balloon_append(struct page * if (PageHighMem(page)) { list_add_tail(PAGE_TO_LIST(page), &ballooned_pages); bs.balloon_high++; - totalhigh_pages--; + dec_totalhigh_pages(); } else { list_add(PAGE_TO_LIST(page), &ballooned_pages); bs.balloon_low++; @@ -139,7 +147,7 @@ static struct page *balloon_retrieve(voi if (PageHighMem(page)) { bs.balloon_high--; - totalhigh_pages++; + inc_totalhigh_pages(); } else bs.balloon_low--; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |