diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-16 15:13:15 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:27 +0200 |
commit | 720ff280e73ebdc6751a9c5ae741fdcdd092a5a0 (patch) | |
tree | 0549da31d6b69c0c9905d16932dbe705d29d7aa5 /block/qcow2-cluster.c | |
parent | d9ca2ea2e261442c267f542953a5f3243e4f608e (diff) | |
download | qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.zip qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.gz qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.bz2 |
block: Convert bdrv_pwrite_zeroes() 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/qcow2-cluster.c')
-rw-r--r-- | block/qcow2-cluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 0cd7fdf..6a3ad90 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -1752,7 +1752,7 @@ static int expand_zero_clusters_in_l1(BlockDriverState *bs, uint64_t *l1_table, goto fail; } - ret = bdrv_pwrite_zeroes(bs->file->bs, offset, s->cluster_size, 0); + ret = bdrv_pwrite_zeroes(bs->file, offset, s->cluster_size, 0); if (ret < 0) { if (!preallocated) { qcow2_free_clusters(bs, offset, s->cluster_size, |