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)
commit53be73a5d75f477e52c9275ed7aa9307a8b73e5c
tree8c444c33071282722a2c27da19727952c1b3f149
parentf9f3ee9130eb588c75e4a145837d4e6214947c40
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