Skip to content
Commit 63b9b80e authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_balloon: divide/multiply instead of shifts



We managed to get confused about the shift direction at least once.
Let's switch to division/multiplcation instead. Add a number of pages
macro for this purpose.  We still keep the order macro around too since
this is what alloc/free pages want.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarWei Wang <wei.w.wang@intel.com>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
parent 2a946fa1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment