block: rename block_job_complete to block_job_completed

The imperative will be used for the QMP command.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Paolo Bonzini 2012-10-18 16:49:20 +02:00 committed by Kevin Wolf
parent b9a9b3a462
commit 65f4632243
4 changed files with 6 additions and 6 deletions

View File

@ -160,7 +160,7 @@ exit_restore_reopen:
bdrv_reopen(overlay_bs, s->orig_overlay_flags, NULL); bdrv_reopen(overlay_bs, s->orig_overlay_flags, NULL);
} }
block_job_complete(&s->common, ret); block_job_completed(&s->common, ret);
} }
static void commit_set_speed(BlockJob *job, int64_t speed, Error **errp) static void commit_set_speed(BlockJob *job, int64_t speed, Error **errp)

View File

@ -86,7 +86,7 @@ static void coroutine_fn stream_run(void *opaque)
s->common.len = bdrv_getlength(bs); s->common.len = bdrv_getlength(bs);
if (s->common.len < 0) { if (s->common.len < 0) {
block_job_complete(&s->common, s->common.len); block_job_completed(&s->common, s->common.len);
return; return;
} }
@ -184,7 +184,7 @@ wait:
} }
qemu_vfree(buf); qemu_vfree(buf);
block_job_complete(&s->common, ret); block_job_completed(&s->common, ret);
} }
static void stream_set_speed(BlockJob *job, int64_t speed, Error **errp) static void stream_set_speed(BlockJob *job, int64_t speed, Error **errp)

View File

@ -71,7 +71,7 @@ void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
return job; return job;
} }
void block_job_complete(BlockJob *job, int ret) void block_job_completed(BlockJob *job, int ret)
{ {
BlockDriverState *bs = job->bs; BlockDriverState *bs = job->bs;

View File

@ -135,14 +135,14 @@ void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
void block_job_sleep_ns(BlockJob *job, QEMUClock *clock, int64_t ns); void block_job_sleep_ns(BlockJob *job, QEMUClock *clock, int64_t ns);
/** /**
* block_job_complete: * block_job_completed:
* @job: The job being completed. * @job: The job being completed.
* @ret: The status code. * @ret: The status code.
* *
* Call the completion function that was registered at creation time, and * Call the completion function that was registered at creation time, and
* free @job. * free @job.
*/ */
void block_job_complete(BlockJob *job, int ret); void block_job_completed(BlockJob *job, int ret);
/** /**
* block_job_set_speed: * block_job_set_speed: