]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: streamline rs_get_progress() and its raid_status() caller side
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 1 Oct 2019 15:47:55 +0000 (17:47 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 5 Nov 2019 19:04:37 +0000 (14:04 -0500)
commitdedb8aa1f2e91235ebb6ba52d7ffb4bc272f5df9
tree8c444c33071282722a2c27da19727952c1b3f149
parent5f276b0fa1c329d735b3cae4e51358957eaabcf1
dm raid: streamline rs_get_progress() and its raid_status() caller side

Pass already deciphered state into rs_get_progress, simplify recovery offset
definition and combine two st_resync, st_reshape conditionals into one as is
already the case with st_check and st_repair.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c