Patchwork [08/47] block: rename block_job_complete to block_job_completed

login
register
mail settings
Submitter Paolo Bonzini
Date July 24, 2012, 11:03 a.m.
Message ID <1343127865-16608-9-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/172838/
State New
Headers show

Comments

Paolo Bonzini - July 24, 2012, 11:03 a.m.
The imperative will be used for the QMP command.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 block/stream.c |    4 ++--
 blockjob.c     |    2 +-
 blockjob.h     |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/block/stream.c b/block/stream.c
index 5b801b4..b3ede44 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -84,7 +84,7 @@  static void coroutine_fn stream_run(void *opaque)
 
     s->common.len = bdrv_getlength(bs);
     if (s->common.len < 0) {
-        block_job_complete(&s->common, s->common.len);
+        block_job_completed(&s->common, s->common.len);
         return;
     }
 
@@ -161,7 +161,7 @@  wait:
     }
 
     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)
diff --git a/blockjob.c b/blockjob.c
index 5d62191..a18da3f 100644
--- a/blockjob.c
+++ b/blockjob.c
@@ -71,7 +71,7 @@  void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
     return job;
 }
 
-void block_job_complete(BlockJob *job, int ret)
+void block_job_completed(BlockJob *job, int ret)
 {
     BlockDriverState *bs = job->bs;
 
diff --git a/blockjob.h b/blockjob.h
index ccbef07..2abbe13 100644
--- a/blockjob.h
+++ b/blockjob.h
@@ -132,14 +132,14 @@  void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
 void block_job_sleep_ns(BlockJob *job, QEMUClock *clock, int64_t ns);
 
 /**
- * block_job_complete:
+ * block_job_completed:
  * @job: The job being completed.
  * @ret: The status code.
  *
  * Call the completion function that was registered at creation time, and
  * free @job.
  */
-void block_job_complete(BlockJob *job, int ret);
+void block_job_completed(BlockJob *job, int ret);
 
 /**
  * block_job_set_speed: