commit | e641c1e81e54fc14908ff6785ef7d51e42c2e1bb | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Sep 04 19:00:20 2013 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Sep 06 15:25:08 2013 +0200 |
tree | 4f2f526c2a0b502b391953078d0e1232f732f424 | |
parent | 26ae980492920e417bc91761cc85950f18e41f85 [diff] |
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>