diff options
Diffstat (limited to 'drivers/md/raid6main.c')
-rw-r--r-- | drivers/md/raid6main.c | 4 |
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) * 2 * (n-2) * chunksize where 'n' is the number of raid devices */ { - int stripe = (mddev->raid_disks-2) * mddev->chunk_size - / PAGE_SIZE; + int stripe = (mddev->raid_disks-2) * + (mddev->chunk_size / PAGE_SIZE); if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) mddev->queue->backing_dev_info.ra_pages = 2 * stripe; } |