summaryrefslogtreecommitdiffstats
path: root/include/block/blockjob.h
diff options
context:
space:
mode:
authorKevin Wolf2018-04-19 13:04:01 +0200
committerKevin Wolf2018-05-23 14:30:50 +0200
commitdbe5e6c1f73b41282624b78a2375a5c3ee59e905 (patch)
treeec2cad34f5b7d8a067166b251ab7743c86a595a1 /include/block/blockjob.h
parentjob: Move pause/resume functions to Job (diff)
downloadqemu-dbe5e6c1f73b41282624b78a2375a5c3ee59e905.tar.gz
qemu-dbe5e6c1f73b41282624b78a2375a5c3ee59e905.tar.xz
qemu-dbe5e6c1f73b41282624b78a2375a5c3ee59e905.zip
job: Replace BlockJob.completed with job_is_completed()
Since we introduced an explicit status to block job, BlockJob.completed is redundant because it can be derived from the status. Remove the field from BlockJob and add a function to derive it from the status at the Job level. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/block/blockjob.h')
-rw-r--r--include/block/blockjob.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h
index 556a8f6375..3e94e18850 100644
--- a/include/block/blockjob.h
+++ b/include/block/blockjob.h
@@ -88,9 +88,6 @@ typedef struct BlockJob {
/** The opaque value that is passed to the completion function. */
void *opaque;
- /** True when job has reported completion by calling block_job_completed. */
- bool completed;
-
/** ret code passed to block_job_completed. */
int ret;