Match change to the memory/target value, as it is now in KiB, not bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-09-21 15:12:32 +01:00
1 parent 0c41a8f422
commit 1fe49007f3
1 file changed
+4 -1
@@ -362,7 +362,10 @@ static void watch_target(struct xenbus_watch *watch, const char *node)
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));
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.