diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 31843604049c..122e64e557b1 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -2382,8 +2382,8 @@ static int run(mddev_t *mddev) | |||
2382 | * 2 * (n-1) * chunksize where 'n' is the number of raid devices | 2382 | * 2 * (n-1) * chunksize where 'n' is the number of raid devices |
2383 | */ | 2383 | */ |
2384 | { | 2384 | { |
2385 | int stripe = (mddev->raid_disks-1) * mddev->chunk_size | 2385 | int stripe = (mddev->raid_disks-1) * |
2386 | / PAGE_SIZE; | 2386 | (mddev->chunk_size / PAGE_SIZE); |
2387 | if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) | 2387 | if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) |
2388 | mddev->queue->backing_dev_info.ra_pages = 2 * stripe; | 2388 | mddev->queue->backing_dev_info.ra_pages = 2 * stripe; |
2389 | } | 2389 | } |