diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 4cc6b0e398bc..2737247d2a02 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5871,7 +5871,8 @@ static int check_reshape(struct mddev *mddev) | |||
5871 | if (!check_stripe_cache(mddev)) | 5871 | if (!check_stripe_cache(mddev)) |
5872 | return -ENOSPC; | 5872 | return -ENOSPC; |
5873 | 5873 | ||
5874 | return resize_stripes(conf, conf->raid_disks + mddev->delta_disks); | 5874 | return resize_stripes(conf, (conf->previous_raid_disks |
5875 | + mddev->delta_disks)); | ||
5875 | } | 5876 | } |
5876 | 5877 | ||
5877 | static int raid5_start_reshape(struct mddev *mddev) | 5878 | static int raid5_start_reshape(struct mddev *mddev) |