Re: [PATCH] xen: make sysfs files behave as their names suggest

From: Ingo Molnar
Date: Thu Jan 29 2009 - 07:21:26 EST



* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> 1: make "target_kb" only accept and produce a memory size in kilobytes.
> 2: add a second "target" file which produces output in bytes, and will accept
> memparse input (scaled bytes)
>
> This fixes the rather irritating problem that writing the same value
> read back into target_kb would end up shrinking the domain by a factor
> of 1024, with generally bad results.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
> ---
> drivers/xen/balloon.c | 33 ++++++++++++++++++++++++++++++++-
> 1 file changed, 32 insertions(+), 1 deletion(-)

applied to tip/x86/urgent, thanks Jeremy!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/