dm raid: move sectors_per_dev calculation
authorJonathan E Brassow <jbrassow@redhat.com>
Fri, 27 Jul 2012 14:08:04 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:04 +0000 (15:08 +0100)
commitc039c332f23e794deb6d6f37b9f07ff3b27fb2cf
tree2b6bce014f9359e6152c957594aa86f9549f7dab
parentf999e8fe70bd0b8faa27ccdac14b5942999c6e78
dm raid: move sectors_per_dev calculation

In preparation for RAID10 inclusion in dm-raid, we move the sectors_per_dev
calculation later in the device creation process.  This is because we won't
know up-front how many stripes vs how many mirrors there are which will
change the calculation.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid.c