void block_job_completed(BlockJob *job, int ret)

{

    BlockDriverState *bs = job->bs;



    assert(bs->job == job);

    job->cb(job->opaque, ret);

    bs->job = NULL;

    g_free(job);

    bdrv_set_in_use(bs, 0);

}

void block_job_completed(BlockJob *job, int ret)

{

    BlockDriverState *bs = job->bs;



    assert(bs->job == job);

    job->cb(job->opaque, ret);

    bs->job = NULL;

    g_free(job);

    bdrv_set_in_use(bs, 0);

}

void FUNC_0(BlockJob *VAR_0, int VAR_1)

{

    BlockDriverState *bs = VAR_0->bs;



    assert(bs->VAR_0 == VAR_0);

    VAR_0->cb(VAR_0->opaque, VAR_1);

    bs->VAR_0 = NULL;

    g_free(VAR_0);

    bdrv_set_in_use(bs, 0);

}

void FUNC_0(BlockJob *VAR_0, int VAR_1)
{ BlockDriverState *bs = VAR_0->bs; assert(bs->VAR_0 == VAR_0); VAR_0->cb(VAR_0->opaque, VAR_1); bs->VAR_0 = NULL; g_free(VAR_0); bdrv_set_in_use(bs, 0); }