summaryrefslogtreecommitdiff
path: root/block/io.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-05-24 17:21:22 +0200
committerKevin Wolf <kwolf@redhat.com>2016-07-05 16:46:26 +0200
commit28b04a8f655820cca2cc1c8fe409462b46d50d41 (patch)
tree065392421872b590eecf23c42a392a6eba539c88 /block/io.c
parentdb1e80ee2ed6fc9eb6b203873b39752144f5577f (diff)
downloadqemu-28b04a8f655820cca2cc1c8fe409462b46d50d41.tar.gz
qemu-28b04a8f655820cca2cc1c8fe409462b46d50d41.tar.bz2
qemu-28b04a8f655820cca2cc1c8fe409462b46d50d41.zip
block: Convert bdrv_co_readv() 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/io.c b/block/io.c
index b9e53e3129..c988e1b925 100644
--- a/block/io.c
+++ b/block/io.c
@@ -1141,12 +1141,12 @@ static int coroutine_fn bdrv_co_do_readv(BlockDriverState *bs,
nb_sectors << BDRV_SECTOR_BITS, qiov, flags);
}
-int coroutine_fn bdrv_co_readv(BlockDriverState *bs, int64_t sector_num,
- int nb_sectors, QEMUIOVector *qiov)
+int coroutine_fn bdrv_co_readv(BdrvChild *child, int64_t sector_num,
+ int nb_sectors, QEMUIOVector *qiov)
{
- trace_bdrv_co_readv(bs, sector_num, nb_sectors);
+ trace_bdrv_co_readv(child->bs, sector_num, nb_sectors);
- return bdrv_co_do_readv(bs, sector_num, nb_sectors, qiov, 0);
+ return bdrv_co_do_readv(child->bs, sector_num, nb_sectors, qiov, 0);
}
/* Maximum buffer for write zeroes fallback, in bytes */