aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid6main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid6main.c')
-rw-r--r--drivers/md/raid6main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid6main.c b/drivers/md/raid6main.c
index bc69355e0100..e53d2d96ea3a 100644
--- a/drivers/md/raid6main.c
+++ b/drivers/md/raid6main.c
@@ -2135,8 +2135,8 @@ static int run(mddev_t *mddev)
2135 * 2 * (n-2) * chunksize where 'n' is the number of raid devices 2135 * 2 * (n-2) * chunksize where 'n' is the number of raid devices
2136 */ 2136 */
2137 { 2137 {
2138 int stripe = (mddev->raid_disks-2) * mddev->chunk_size 2138 int stripe = (mddev->raid_disks-2) *
2139 / PAGE_SIZE; 2139 (mddev->chunk_size / PAGE_SIZE);
2140 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) 2140 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe)
2141 mddev->queue->backing_dev_info.ra_pages = 2 * stripe; 2141 mddev->queue->backing_dev_info.ra_pages = 2 * stripe;
2142 } 2142 }