void bdrv_io_unplug(BlockDriverState *bs)

{

    BlockDriver *drv = bs->drv;

    if (drv && drv->bdrv_io_unplug) {

        drv->bdrv_io_unplug(bs);

    } else if (bs->file) {

        bdrv_io_unplug(bs->file->bs);

    }

}

void bdrv_io_unplug(BlockDriverState *bs)

{

    BlockDriver *drv = bs->drv;

    if (drv && drv->bdrv_io_unplug) {

        drv->bdrv_io_unplug(bs);

    } else if (bs->file) {

        bdrv_io_unplug(bs->file->bs);

    }

}

void FUNC_0(BlockDriverState *VAR_0)

{

    BlockDriver *drv = VAR_0->drv;

    if (drv && drv->FUNC_0) {

        drv->FUNC_0(VAR_0);

    } else if (VAR_0->file) {

        FUNC_0(VAR_0->file->VAR_0);

    }

}

void FUNC_0(BlockDriverState *VAR_0)
{ BlockDriver *drv = VAR_0->drv; if (drv && drv->FUNC_0) { drv->FUNC_0(VAR_0); } else if (VAR_0->file) { FUNC_0(VAR_0->file->VAR_0); } }