]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
md: raid5 run(): Fix max_degraded for raid level 4.
authorAndre Noll <maan@systemlinux.org>
Tue, 31 Mar 2009 04:00:56 +0000 (15:00 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 04:00:56 +0000 (15:00 +1100)
raid4 allows only one failed disk.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c

index 1aebd3ef80b73b55448088b509673cc513295a71..e1ee181b79bb784688e065cae55138461cea64d2 100644 (file)
@@ -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 ||