aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/multipath.c
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2008-07-21 03:05:22 -0400
committerNeilBrown <neilb@suse.de>2008-07-21 03:05:22 -0400
commitf233ea5c9e0d8b95e4283bf6a3436b88f6fd3586 (patch)
tree8a36b621de46da23f3957c6e3ea4d653c2937544 /drivers/md/multipath.c
parent15f4a5fdf3aa07b53f6a7969664741db5882e485 (diff)
md: Make mddev->array_size sector-based.
This patch renames the array_size field of struct mddev_s to array_sectors and converts all instances to use units of 512 byte sectors instead of 1k blocks. Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r--drivers/md/multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c
index 541cbe3414bd..c4779ccba1c3 100644
--- a/drivers/md/multipath.c
+++ b/drivers/md/multipath.c
@@ -504,7 +504,7 @@ static int multipath_run (mddev_t *mddev)
504 /* 504 /*
505 * Ok, everything is just fine now 505 * Ok, everything is just fine now
506 */ 506 */
507 mddev->array_size = mddev->size; 507 mddev->array_sectors = mddev->size * 2;
508 508
509 mddev->queue->unplug_fn = multipath_unplug; 509 mddev->queue->unplug_fn = multipath_unplug;
510 mddev->queue->backing_dev_info.congested_fn = multipath_congested; 510 mddev->queue->backing_dev_info.congested_fn = multipath_congested;