projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b522adc
)
md: raid5 run(): Fix max_degraded for raid level 4.
author
Andre Noll
<maan@systemlinux.org>
Tue, 31 Mar 2009 04:00:56 +0000
(15:00 +1100)
committer
NeilBrown
<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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index 1aebd3ef80b73b55448088b509673cc513295a71..e1ee181b79bb784688e065cae55138461cea64d2 100644
(file)
--- 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 ||