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/io.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/io.c')
-rw-r--r-- | block/io.c | 6 |
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, |