commit | f59fee8d509b446df24843c1145a99b740492725 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Tue Jun 25 15:13:43 2013 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jun 28 09:20:27 2013 +0200 |
tree | a9f9cb2b4abfd23d5a9c13a64f907c5855a64a66 | |
parent | e5ca8fdd407431e281c6f303dc9f45f63a28048f [diff] [blame] |
block: Make BlockJobTypes const Signed-off-by: Kevin Wolf <kwolf@redhat.com>
diff --git a/block/commit.c b/block/commit.c index 553447e..2227fc2 100644 --- a/block/commit.c +++ b/block/commit.c
@@ -173,7 +173,7 @@ ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME); } -static BlockJobType commit_job_type = { +static const BlockJobType commit_job_type = { .instance_size = sizeof(CommitBlockJob), .job_type = "commit", .set_speed = commit_set_speed,