From 52cdbc5869a3fbbe4d91c83e97dffb212af28ce3 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 16 Feb 2017 18:39:03 +0100 Subject: block: Pass BdrvChild to bdrv_truncate() Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block/vhdx-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/vhdx-log.c') diff --git a/block/vhdx-log.c b/block/vhdx-log.c index 02eb104310..67a91c0de5 100644 --- a/block/vhdx-log.c +++ b/block/vhdx-log.c @@ -548,7 +548,7 @@ static int vhdx_log_flush(BlockDriverState *bs, BDRVVHDXState *s, if (new_file_size % (1024*1024)) { /* round up to nearest 1MB boundary */ new_file_size = ((new_file_size >> 20) + 1) << 20; - bdrv_truncate(bs->file->bs, new_file_size); + bdrv_truncate(bs->file, new_file_size); } } qemu_vfree(desc_entries); -- cgit v1.2.1