diff options
author | Andre Noll <maan@systemlinux.org> | 2009-03-30 23:33:13 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-30 23:33:13 -0400 |
commit | 58c0fed400603a802968b23ddf78f029c5a84e41 (patch) | |
tree | 474fcb9775bb07f39ebb7802fb9b51d69222dcbb /drivers/md/multipath.c | |
parent | 575a80fa4f623141e9791e41879d87800fb6d862 (diff) |
md: Make mddev->size sector-based.
This patch renames the "size" field of struct mddev_s to "dev_sectors"
and stores the number of 512-byte sectors instead of the number of
1K-blocks in it.
All users of that field, including raid levels 1,4-6,10, are adjusted
accordingly. This simplifies the code a bit because it allows to get
rid of a couple of divisions/multiplications by two.
In order to make checkpatch happy, some minor coding style issues
have also been addressed. In particular, size_store() now uses
strict_strtoull() instead of simple_strtoull().
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 0ed1005afb58..87accf74e4b4 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -502,7 +502,7 @@ static int multipath_run (mddev_t *mddev) | |||
502 | /* | 502 | /* |
503 | * Ok, everything is just fine now | 503 | * Ok, everything is just fine now |
504 | */ | 504 | */ |
505 | mddev->array_sectors = mddev->size * 2; | 505 | mddev->array_sectors = mddev->dev_sectors; |
506 | 506 | ||
507 | mddev->queue->unplug_fn = multipath_unplug; | 507 | mddev->queue->unplug_fn = multipath_unplug; |
508 | mddev->queue->backing_dev_info.congested_fn = multipath_congested; | 508 | mddev->queue->backing_dev_info.congested_fn = multipath_congested; |