]> 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)
commitccb6c007a45077294fbaf802603704c448dc3f6b
tree2b6bce014f9359e6152c957594aa86f9549f7dab
parent691e8ef7ee4a8a45cec5e917b980246a8a9aec3a
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