aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c2
-rw-r--r--block/io.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index 4c704a134f..76ea45955f 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -1493,7 +1493,7 @@ int blk_pwrite_compressed(BlockBackend *blk, int64_t offset, const void *buf,
return ret;
}
- return bdrv_pwrite_compressed(blk_bs(blk), offset, buf, count);
+ return bdrv_pwrite_compressed(blk->root, offset, buf, count);
}
int blk_truncate(BlockBackend *blk, int64_t offset)
diff --git a/block/io.c b/block/io.c
index da874d0f19..c528fead1b 100644
--- a/block/io.c
+++ b/block/io.c
@@ -1868,9 +1868,10 @@ int bdrv_is_allocated_above(BlockDriverState *top,
return 0;
}
-int bdrv_pwrite_compressed(BlockDriverState *bs, int64_t offset,
+int bdrv_pwrite_compressed(BdrvChild *child, int64_t offset,
const void *buf, int bytes)
{
+ BlockDriverState *bs = child->bs;
BlockDriver *drv = bs->drv;
int ret;