]> git.proxmox.com Git - qemu.git/commit
cow: do not call bdrv_co_is_allocated
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Sep 2013 17:00:20 +0000 (19:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commite641c1e81e54fc14908ff6785ef7d51e42c2e1bb
tree4f2f526c2a0b502b391953078d0e1232f732f424
parent26ae980492920e417bc91761cc85950f18e41f85
cow: do not call bdrv_co_is_allocated

As we change bdrv_is_allocated to gather more information from bs and
bs->file, it will become a bit slower.  It is still appropriate for online
jobs, but not for reads/writes.  Call the internal function instead.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/cow.c