]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a0df7615fccb485d7a5c17418669d9ce88aa89f
tree2b6bce014f9359e6152c957594aa86f9549f7dab
parent74fc90a74b80e9aff617d6be1a83a8bd6744900d
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