diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-20 20:09:15 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:27 +0200 |
commit | d9ca2ea2e261442c267f542953a5f3243e4f608e (patch) | |
tree | ad020b3c0d4f341972e0ad8bcaaace9f3785728d /block/vdi.c | |
parent | cf2ab8fc345c34f8671fade9230746610e4fc340 (diff) | |
download | qemu-d9ca2ea2e261442c267f542953a5f3243e4f608e.zip |
block: Convert bdrv_pwrite(v/_sync) 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/vdi.c')
-rw-r--r-- | block/vdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vdi.c b/block/vdi.c index b2871caf92..a1a12d9c70 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -670,7 +670,7 @@ vdi_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, * acquire the lock and thus the padded cluster is written before * the other coroutines can write to the affected area. */ qemu_co_mutex_lock(&s->write_lock); - ret = bdrv_pwrite(bs->file->bs, data_offset, block, s->block_size); + ret = bdrv_pwrite(bs->file, data_offset, block, s->block_size); qemu_co_mutex_unlock(&s->write_lock); } else { uint64_t data_offset = s->header.offset_data + |