[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Match change to the memory/target value, as it is now in KiB, not bytes.
# HG changeset patch # User emellor@ewan # Node ID a498dab0beef52c77ad9d92976406fa7d5cb4861 # Parent 82bc05411d852061bf5cc3e6c3e4019e06528543 Match change to the memory/target value, as it is now in KiB, not bytes. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 82bc05411d85 -r a498dab0beef linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Wed Sep 21 10:31:55 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Wed Sep 21 14:12:32 2005 @@ -362,7 +362,10 @@ return; } - set_new_target(new_target >> PAGE_SHIFT); + /* The given memory/target value is in KiB, so it needs converting to + pages. PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10. + */ + set_new_target(new_target >> (PAGE_SHIFT - 10)); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |