block: Convert bdrv_pwrite_compressed() to BdrvChild

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
CC: Jeff Cody <jcody@redhat.com>
CC: Markus Armbruster <armbru@redhat.com>
CC: Eric Blake <eblake@redhat.com>
CC: John Snow <jsnow@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Pavel Butsykin authored and Kevin Wolf committed 2016-09-05 19:06:47 +02:00
1 parent fe5c1355e7
commit 751e2f0698
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -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;