diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-02-16 18:39:03 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-24 16:09:23 +0100 |
commit | 52cdbc5869a3fbbe4d91c83e97dffb212af28ce3 (patch) | |
tree | 73198d7c2deb39b1d04d7b4d29729198aa1a62f7 /block/vhdx.c | |
parent | becc347e1ca6884b4bc74a0572d3206bee7fec13 (diff) |
block: Pass BdrvChild to bdrv_truncate()
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/vhdx.c')
-rw-r--r-- | block/vhdx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vhdx.c b/block/vhdx.c index 68db9e074e..c67772e2f7 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -1165,7 +1165,7 @@ static int vhdx_allocate_block(BlockDriverState *bs, BDRVVHDXState *s, /* per the spec, the address for a block is in units of 1MB */ *new_offset = ROUND_UP(*new_offset, 1024 * 1024); - return bdrv_truncate(bs->file->bs, *new_offset + s->block_size); + return bdrv_truncate(bs->file, *new_offset + s->block_size); } /* |