static int qcow2_mark_clean(BlockDriverState *bs)

{

    BDRVQcowState *s = bs->opaque;



    if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) {

        int ret = bdrv_flush(bs);

        if (ret < 0) {

            return ret;

        }



        s->incompatible_features &= ~QCOW2_INCOMPAT_DIRTY;

        return qcow2_update_header(bs);

    }

    return 0;

}

static int qcow2_mark_clean(BlockDriverState *bs)

{

    BDRVQcowState *s = bs->opaque;



    if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) {

        int ret = bdrv_flush(bs);

        if (ret < 0) {

            return ret;

        }



        s->incompatible_features &= ~QCOW2_INCOMPAT_DIRTY;

        return qcow2_update_header(bs);

    }

    return 0;

}

        int ret = bdrv_flush(bs);         s->incompatible_features &= ~QCOW2_INCOMPAT_DIRTY;
static int FUNC_0(BlockDriverState *VAR_0)

{

    BDRVQcowState *s = VAR_0->opaque;



    if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) {

        int VAR_1 = bdrv_flush(VAR_0);

        if (VAR_1 < 0) {

            return VAR_1;

        }



        s->incompatible_features &= ~QCOW2_INCOMPAT_DIRTY;

        return qcow2_update_header(VAR_0);

    }

    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0)
{ BDRVQcowState *s = VAR_0->opaque; if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) { int VAR_1 = bdrv_flush(VAR_0); if (VAR_1 < 0) { return VAR_1; } s->incompatible_features &= ~QCOW2_INCOMPAT_DIRTY; return qcow2_update_header(VAR_0); } return 0; }