diff options
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; |