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 1aebd3ef80b7..e1ee181b79bb 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -4331,7 +4331,7 @@ static int run(mddev_t *mddev) | |||
4331 | */ | 4331 | */ |
4332 | sector_t here_new, here_old; | 4332 | sector_t here_new, here_old; |
4333 | int old_disks; | 4333 | int old_disks; |
4334 | int max_degraded = (mddev->level == 5 ? 1 : 2); | 4334 | int max_degraded = (mddev->level == 6 ? 2 : 1); |
4335 | 4335 | ||
4336 | if (mddev->new_level != mddev->level || | 4336 | if (mddev->new_level != mddev->level || |
4337 | mddev->new_layout != mddev->layout || | 4337 | mddev->new_layout != mddev->layout || |