diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-05-24 17:21:22 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:26 +0200 |
commit | 25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1 (patch) | |
tree | 35864d9b886059572839bcdf3e4aa482c36187b8 /block/qcow.c | |
parent | 28b04a8f655820cca2cc1c8fe409462b46d50d41 (diff) |
block: Convert bdrv_co_writev() to BdrvChild
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qcow.c')
-rw-r--r-- | block/qcow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow.c b/block/qcow.c index c8d4e5fdb6..0db43f899d 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -745,7 +745,7 @@ static coroutine_fn int qcow_co_writev(BlockDriverState *bs, int64_t sector_num, hd_iov.iov_len = n * 512; qemu_iovec_init_external(&hd_qiov, &hd_iov, 1); qemu_co_mutex_unlock(&s->lock); - ret = bdrv_co_writev(bs->file->bs, + ret = bdrv_co_writev(bs->file, (cluster_offset >> 9) + index_in_cluster, n, &hd_qiov); qemu_co_mutex_lock(&s->lock); |