[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxxx # Node ID cadf1df88d3e83b3c69100260880e0139b336b49 # Parent 1818ea221bfe576d20aaa134d505de1d0966e87d [BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally. Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxx> --- linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff -r 1818ea221bfe -r cadf1df88d3e linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Sat Aug 19 10:15:01 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Sat Aug 19 10:17:48 2006 +0100 @@ -440,20 +440,16 @@ static int balloon_read(char *page, char "Requested target: %8lu kB\n" "Low-mem balloon: %8lu kB\n" "High-mem balloon: %8lu kB\n" + "Driver pages: %8lu kB\n" "Xen hard limit: ", PAGES2KB(current_pages), PAGES2KB(target_pages), - PAGES2KB(balloon_low), PAGES2KB(balloon_high)); - - if (hard_limit != ~0UL) { - len += sprintf( - page + len, - "%8lu kB (inc. %8lu kB driver headroom)\n", - PAGES2KB(hard_limit), PAGES2KB(driver_pages)); - } else { - len += sprintf( - page + len, - " ??? kB\n"); - } + PAGES2KB(balloon_low), PAGES2KB(balloon_high), + PAGES2KB(driver_pages)); + + if (hard_limit != ~0UL) + len += sprintf(page + len, "%8lu kB\n", PAGES2KB(hard_limit)); + else + len += sprintf(page + len, " ??? kB\n"); *eof = 1; return len; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |