diff options
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index fece3277c2a..a2c2e184c0a 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c | |||
@@ -361,7 +361,7 @@ static int raid0_run (mddev_t *mddev) | |||
361 | * chunksize should be used in that case. | 361 | * chunksize should be used in that case. |
362 | */ | 362 | */ |
363 | { | 363 | { |
364 | int stripe = mddev->raid_disks * mddev->chunk_size / PAGE_CACHE_SIZE; | 364 | int stripe = mddev->raid_disks * mddev->chunk_size / PAGE_SIZE; |
365 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) | 365 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) |
366 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; | 366 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; |
367 | } | 367 | } |