OSDN Git Service

replication: Reduce usage of s->hidden_disk and s->secondary_disk
authorLukas Straub <lukasstraub2@web.de>
Sun, 18 Jul 2021 14:48:29 +0000 (16:48 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 20 Jul 2021 14:11:53 +0000 (16:11 +0200)
commita990a42b39338ffd12fb9640d792276313f75ed5
tree308e818b15d3ac7491f2f022001107c92f58bf4a
parent1e12ecfd2cd38d06278ee7424fa2ab0bf3c10e93
replication: Reduce usage of s->hidden_disk and s->secondary_disk

In preparation for the next patch, initialize s->hidden_disk and
s->secondary_disk later and replace access to them with local variables
in the places where they aren't initialized yet.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1eb9dc179267207d9c7eccaeb30761758e32e9ab.1626619393.git.lukasstraub2@web.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/replication.c