diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 1aebd3ef80b73b55448088b509673cc513295a71..e1ee181b79bb784688e065cae55138461cea64d2 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -4331,7 +4331,7 @@ static int run(mddev_t *mddev) */ sector_t here_new, here_old; int old_disks; - int max_degraded = (mddev->level == 5 ? 1 : 2); + int max_degraded = (mddev->level == 6 ? 2 : 1); if (mddev->new_level != mddev->level || mddev->new_layout != mddev->layout ||