diff options
| -rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index cd9aab9329fd..2bf094a587cb 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
| @@ -5914,7 +5914,7 @@ static int check_reshape(struct mddev *mddev) | |||
| 5914 | return 0; /* nothing to do */ | 5914 | return 0; /* nothing to do */ |
| 5915 | if (has_failed(conf)) | 5915 | if (has_failed(conf)) |
| 5916 | return -EINVAL; | 5916 | return -EINVAL; |
| 5917 | if (mddev->delta_disks < 0) { | 5917 | if (mddev->delta_disks < 0 && mddev->reshape_position == MaxSector) { |
| 5918 | /* We might be able to shrink, but the devices must | 5918 | /* We might be able to shrink, but the devices must |
| 5919 | * be made bigger first. | 5919 | * be made bigger first. |
| 5920 | * For raid6, 4 is the minimum size. | 5920 | * For raid6, 4 is the minimum size. |
