aboutsummaryrefslogtreecommitdiff
path: root/block/copy-before-write.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-08-24 11:38:56 +0300
committerHanna Reitz <hreitz@redhat.com>2021-09-01 14:38:08 +0200
commitabde8ac2a506bbcfedb819d4c43ea1e3ac20cc87 (patch)
tree08e2ca0b531d5326aa18bf7a13885bfebe59c961 /block/copy-before-write.c
parentc0605985696a19ef034fa25d04f53f3b3b383896 (diff)
downloadqemu-abde8ac2a506bbcfedb819d4c43ea1e3ac20cc87.zip
qemu-abde8ac2a506bbcfedb819d4c43ea1e3ac20cc87.tar.gz
qemu-abde8ac2a506bbcfedb819d4c43ea1e3ac20cc87.tar.bz2
block/block-copy: block_copy_state_new(): drop extra arguments
The only caller pass copy_range and compress both false. Let's just drop these arguments. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210824083856.17408-35-vsementsov@virtuozzo.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/copy-before-write.c')
-rw-r--r--block/copy-before-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/copy-before-write.c b/block/copy-before-write.c
index 2cd68b4..2a5e57d 100644
--- a/block/copy-before-write.c
+++ b/block/copy-before-write.c
@@ -170,7 +170,7 @@ static int cbw_open(BlockDriverState *bs, QDict *options, int flags,
((BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP | BDRV_REQ_NO_FALLBACK) &
bs->file->bs->supported_zero_flags);
- s->bcs = block_copy_state_new(bs->file, s->target, false, false, errp);
+ s->bcs = block_copy_state_new(bs->file, s->target, errp);
if (!s->bcs) {
error_prepend(errp, "Cannot create block-copy-state: ");
return -EINVAL;