summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-05-17 10:08:45 +1000
committerNeilBrown <neilb@suse.de>2012-05-17 10:08:45 +1000
commit6508fdbf40a92fd7c19d32780ea33ce8e8362b93 (patch)
treef51e0e36459eeb2f4e7d94f3ff15ffc5ab12de7c /drivers/md/md.c
parentb16b1b6cd052acbacc0a15f934bca9b354534d48 (diff)
downloadop-kernel-dev-6508fdbf40a92fd7c19d32780ea33ce8e8362b93.zip
op-kernel-dev-6508fdbf40a92fd7c19d32780ea33ce8e8362b93.tar.gz
md/raid10: set dev_sectors properly when resizing devices in array.
raid10 stores dev_sectors in 'conf' separately from the one in 'mddev' because it can have a very significant effect on block addressing and so need to be updated carefully. However raid10_resize isn't updating it at all! To update it correctly, we need to make sure it is a proper multiple of the chunksize taking various details of the layout in to account. This calculation is currently done in setup_conf. So split it out from there and call it from raid10_resize as well. Then set conf->dev_sectors properly. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud