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 1440935414e6..affeaefd4033 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2050,7 +2050,7 @@ static int run(mddev_t *mddev) | |||
2050 | * maybe... | 2050 | * maybe... |
2051 | */ | 2051 | */ |
2052 | { | 2052 | { |
2053 | int stripe = conf->raid_disks * mddev->chunk_size / PAGE_SIZE; | 2053 | int stripe = conf->raid_disks * (mddev->chunk_size / PAGE_SIZE); |
2054 | stripe /= conf->near_copies; | 2054 | stripe /= conf->near_copies; |
2055 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) | 2055 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) |
2056 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; | 2056 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; |