]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
xen: make sysfs files behave as their names suggest
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 29 Jan 2009 00:50:20 +0000 (16:50 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 Jan 2009 12:20:36 +0000 (13:20 +0100)
commit618b2c8db24522ae273d8299c6a936ea13793c4d
treeb0f5f9e03ee56fb85755db24877736e97b3989af
parentbf3647c44bc76c43c4b2ebb4c37a559e899ac70e
xen: make sysfs files behave as their names suggest

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@citrix.com>
Cc: Stable Kernel <stable@kernel.org>
Cc: "dan.magenheimer@oracle.com" <dan.magenheimer@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/xen/balloon.c