]> git.proxmox.com Git - mirror_qemu.git/commit - block/stream.c
stream: tweak usage of bdrv_co_is_allocated
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:52:00 +0000 (16:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:42 +0000 (14:03 +0200)
commitf9749f28b78be36471d3d0f5d4b6eed030f8942e
tree53479d961347b3e2b3c8aeb83058ee9f9fffca48
parent5500316ded9db5b10072334cde1e27fb37682240
stream: tweak usage of bdrv_co_is_allocated

is_allocated_base has complex semantics that are not really usable
outside streaming.  Split the check in two parts, where the allocated
state for the top bs is moved to the caller.  The resulting function
is more generally useful.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c