static void backup_set_speed(BlockJob *job, int64_t speed, Error **errp)

{

    BackupBlockJob *s = container_of(job, BackupBlockJob, common);



    if (speed < 0) {

        error_setg(errp, QERR_INVALID_PARAMETER, "speed");

        return;

    }

    ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);

}

static void backup_set_speed(BlockJob *job, int64_t speed, Error **errp)

{

    BackupBlockJob *s = container_of(job, BackupBlockJob, common);



    if (speed < 0) {

        error_setg(errp, QERR_INVALID_PARAMETER, "speed");

        return;

    }

    ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);

}

    ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);     ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);     ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);     ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);
static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)

{

    BackupBlockJob *s = container_of(VAR_0, BackupBlockJob, common);



    if (VAR_1 < 0) {

        error_setg(VAR_2, QERR_INVALID_PARAMETER, "VAR_1");

        return;

    }

    ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE, SLICE_TIME);

}

static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)
{ BackupBlockJob *s = container_of(VAR_0, BackupBlockJob, common); if (VAR_1 < 0) { error_setg(VAR_2, QERR_INVALID_PARAMETER, "VAR_1"); return; } ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE, SLICE_TIME); }