dm raid: enhance reshape check and factor out reshape setup
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 29 Jun 2016 16:13:58 +0000 (18:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:31 +0000 (15:37 -0400)
commit469b304b58c417874a68630c5f58cf076a34850c
tree2c4b5c36e71b2addd5fdb0e8cce1f5f25e631f5b
parent2a5556c2a86f77ff6085f2cae798728cda47e2c4
dm raid: enhance reshape check and factor out reshape setup

Enhance rs_reshape_requested() check function to be more transparent and
fix its raid10 check.

Streamline the constructor by factoring out reshaping preparation into
fucntion rs_prepare_reshape().

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