int bdrv_flush_all(void)

{

    BlockDriverState *bs;

    int result = 0;



    QTAILQ_FOREACH(bs, &bdrv_states, device_list) {

        int ret = bdrv_flush(bs);

        if (ret < 0 && !result) {

            result = ret;

        }

    }



    return result;

}

int bdrv_flush_all(void)

{

    BlockDriverState *bs;

    int result = 0;



    QTAILQ_FOREACH(bs, &bdrv_states, device_list) {

        int ret = bdrv_flush(bs);

        if (ret < 0 && !result) {

            result = ret;

        }

    }



    return result;

}

        int ret = bdrv_flush(bs);
int FUNC_0(void)

{

    BlockDriverState *bs;

    int VAR_0 = 0;



    QTAILQ_FOREACH(bs, &bdrv_states, device_list) {

        int ret = bdrv_flush(bs);

        if (ret < 0 && !VAR_0) {

            VAR_0 = ret;

        }

    }



    return VAR_0;

}

int FUNC_0(void)
{ BlockDriverState *bs; int VAR_0 = 0; QTAILQ_FOREACH(bs, &bdrv_states, device_list) { int ret = bdrv_flush(bs); if (ret < 0 && !VAR_0) { VAR_0 = ret; } } return VAR_0; }