On 05/14/2016 06:45 AM, Denis V. Lunev wrote: > From: Pavel Butsykin <[email protected]> > > There are no block drivers left that implement the old > .bdrv_write_compressed interface, so it can be removed now. > > Signed-off-by: Pavel Butsykin <[email protected]> > Signed-off-by: Denis V. Lunev <[email protected]> > CC: Jeff Cody <[email protected]> > CC: Markus Armbruster <[email protected]> > CC: Eric Blake <[email protected]> > CC: John Snow <[email protected]> > CC: Stefan Hajnoczi <[email protected]> > CC: Kevin Wolf <[email protected]> > ---
> +++ b/block/io.c
> @@ -1876,7 +1876,6 @@ static void bdrv_write_compressed_co_entry(void *opaque)
> int bdrv_write_compressed(BlockDriverState *bs, int64_t sector_num,
> const uint8_t *buf, int nb_sectors)
> {
> - BlockDriver *drv = bs->drv;
> BdrvWriteCompressedCo data = {
> .bs = bs,
> .sector_num = sector_num,
> @@ -1885,19 +1884,6 @@ int bdrv_write_compressed(BlockDriverState *bs,
> int64_t sector_num,
> .ret = -EINPROGRESS,
> };
>
> - if (!drv) {
> - return -ENOMEDIUM;
> - }
Why are you deleting this check?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
