static void do_commit(Monitor *mon, const QDict *qdict)

{

    int all_devices;

    DriveInfo *dinfo;

    const char *device = qdict_get_str(qdict, "device");



    all_devices = !strcmp(device, "all");

    TAILQ_FOREACH(dinfo, &drives, next) {

        if (!all_devices)

            if (strcmp(bdrv_get_device_name(dinfo->bdrv), device))

                continue;

        bdrv_commit(dinfo->bdrv);

    }

}

static void do_commit(Monitor *mon, const QDict *qdict)

{

    int all_devices;

    DriveInfo *dinfo;

    const char *device = qdict_get_str(qdict, "device");



    all_devices = !strcmp(device, "all");

    TAILQ_FOREACH(dinfo, &drives, next) {

        if (!all_devices)

            if (strcmp(bdrv_get_device_name(dinfo->bdrv), device))

                continue;

        bdrv_commit(dinfo->bdrv);

    }

}

static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    int VAR_2;

    DriveInfo *dinfo;

    const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3");



    VAR_2 = !strcmp(VAR_3, "all");

    TAILQ_FOREACH(dinfo, &drives, next) {

        if (!VAR_2)

            if (strcmp(bdrv_get_device_name(dinfo->bdrv), VAR_3))

                continue;

        bdrv_commit(dinfo->bdrv);

    }

}

static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ int VAR_2; DriveInfo *dinfo; const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); VAR_2 = !strcmp(VAR_3, "all"); TAILQ_FOREACH(dinfo, &drives, next) { if (!VAR_2)
if (strcmp(bdrv_get_device_name(dinfo->bdrv), VAR_3))
continue; bdrv_commit(dinfo->bdrv); } }