diff options
author | Andre Noll <maan@systemlinux.org> | 2008-07-21 03:05:22 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-07-21 03:05:22 -0400 |
commit | f233ea5c9e0d8b95e4283bf6a3436b88f6fd3586 (patch) | |
tree | 8a36b621de46da23f3957c6e3ea4d653c2937544 /drivers/md/raid10.c | |
parent | 15f4a5fdf3aa07b53f6a7969664741db5882e485 (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/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index df08a9fa3a1f..2acea4025243 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2164,7 +2164,7 @@ static int run(mddev_t *mddev) | |||
2164 | /* | 2164 | /* |
2165 | * Ok, everything is just fine now | 2165 | * Ok, everything is just fine now |
2166 | */ | 2166 | */ |
2167 | mddev->array_size = size << (conf->chunk_shift-1); | 2167 | mddev->array_sectors = size << conf->chunk_shift; |
2168 | mddev->resync_max_sectors = size << conf->chunk_shift; | 2168 | mddev->resync_max_sectors = size << conf->chunk_shift; |
2169 | 2169 | ||
2170 | mddev->queue->unplug_fn = raid10_unplug; | 2170 | mddev->queue->unplug_fn = raid10_unplug; |