int block_job_set_speed(BlockJob *job, int64_t value)

{

    int rc;



    if (!job->job_type->set_speed) {

        return -ENOTSUP;

    }

    rc = job->job_type->set_speed(job, value);

    if (rc == 0) {

        job->speed = value;

    }

    return rc;

}

int block_job_set_speed(BlockJob *job, int64_t value)

{

    int rc;



    if (!job->job_type->set_speed) {

        return -ENOTSUP;

    }

    rc = job->job_type->set_speed(job, value);

    if (rc == 0) {

        job->speed = value;

    }

    return rc;

}

int FUNC_0(BlockJob *VAR_0, int64_t VAR_1)

{

    int VAR_2;



    if (!VAR_0->job_type->set_speed) {

        return -ENOTSUP;

    }

    VAR_2 = VAR_0->job_type->set_speed(VAR_0, VAR_1);

    if (VAR_2 == 0) {

        VAR_0->speed = VAR_1;

    }

    return VAR_2;

}

int FUNC_0(BlockJob *VAR_0, int64_t VAR_1)
{ int VAR_2; if (!VAR_0->job_type->set_speed) { return -ENOTSUP; } VAR_2 = VAR_0->job_type->set_speed(VAR_0, VAR_1); if (VAR_2 == 0) { VAR_0->speed = VAR_1; } return VAR_2; }