diff options
author | Alberto Garcia <berto@igalia.com> | 2018-11-12 16:00:44 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-12-14 11:55:02 +0100 |
commit | 2e891722c5e3d0372e042173a425925e14749bf0 (patch) | |
tree | cf427252602e66b28c508e17127a8a9c4411f23e /block | |
parent | 3c4e964762c7d0292185473657dd2afc0d2d060b (diff) | |
download | qemu-2e891722c5e3d0372e042173a425925e14749bf0.zip qemu-2e891722c5e3d0372e042173a425925e14749bf0.tar.gz qemu-2e891722c5e3d0372e042173a425925e14749bf0.tar.bz2 |
block: Remove flags parameter from bdrv_reopen_queue()
Now that all callers are passing all flag changes as QDict options,
the flags parameter is no longer necessary, so we can get rid of it.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/replication.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/block/replication.c b/block/replication.c index af9dba8..e70dd95 100644 --- a/block/replication.c +++ b/block/replication.c @@ -371,19 +371,17 @@ static void reopen_backing_file(BlockDriverState *bs, bool writable, bdrv_subtree_drained_begin(s->secondary_disk->bs); if (s->orig_hidden_read_only) { - int flags = bdrv_get_flags(s->hidden_disk->bs); QDict *opts = qdict_new(); qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !writable); reopen_queue = bdrv_reopen_queue(reopen_queue, s->hidden_disk->bs, - opts, flags); + opts); } if (s->orig_secondary_read_only) { - int flags = bdrv_get_flags(s->secondary_disk->bs); QDict *opts = qdict_new(); qdict_put_bool(opts, BDRV_OPT_READ_ONLY, !writable); reopen_queue = bdrv_reopen_queue(reopen_queue, s->secondary_disk->bs, - opts, flags); + opts); } if (reopen_queue) { |