summaryrefslogtreecommitdiffstats
path: root/block/io.c
diff options
context:
space:
mode:
authorKevin Wolf2016-05-24 17:21:22 +0200
committerKevin Wolf2016-07-05 16:46:26 +0200
commit25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1 (patch)
tree35864d9b886059572839bcdf3e4aa482c36187b8 /block/io.c
parentblock: Convert bdrv_co_readv() to BdrvChild (diff)
downloadqemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.tar.gz
qemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.tar.xz
qemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.zip
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/io.c')
-rw-r--r--block/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/io.c b/block/io.c
index c988e1b925..17e4ad47ec 100644
--- a/block/io.c
+++ b/block/io.c
@@ -1547,12 +1547,12 @@ static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs,
nb_sectors << BDRV_SECTOR_BITS, qiov, flags);
}
-int coroutine_fn bdrv_co_writev(BlockDriverState *bs, int64_t sector_num,
+int coroutine_fn bdrv_co_writev(BdrvChild *child, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
- trace_bdrv_co_writev(bs, sector_num, nb_sectors);
+ trace_bdrv_co_writev(child->bs, sector_num, nb_sectors);
- return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0);
+ return bdrv_co_do_writev(child->bs, sector_num, nb_sectors, qiov, 0);
}
int coroutine_fn bdrv_co_pwrite_zeroes(BlockDriverState *bs,