aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 11c3d7bfa797..29fc06b47d4e 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3814,6 +3814,8 @@ static int raid5_check_reshape(mddev_t *mddev)
3814 if (err) 3814 if (err)
3815 return err; 3815 return err;
3816 3816
3817 if (mddev->degraded > conf->max_degraded)
3818 return -EINVAL;
3817 /* looks like we might be able to manage this */ 3819 /* looks like we might be able to manage this */
3818 return 0; 3820 return 0;
3819} 3821}