aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-10-16 16:27:34 +1100
committerNeilBrown <neilb@suse.de>2009-10-16 16:27:34 +1100
commite4424fee1815f996dccd36be44d68ca160ec3e1b (patch)
tree13e67731367d28451fdb1dcfbf4e085ce236f9b9 /drivers/md/raid5.h
parent417b8d4ac868cf58d6c68f52d72f7648413e0edc (diff)
md: fix problems with RAID6 calculations for DDF.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index dcefdc9629e..dd708359b45 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -488,7 +488,7 @@ static inline int algorithm_valid_raid6(int layout)
{
return (layout >= 0 && layout <= 5)
||
- (layout == 8 || layout == 10)
+ (layout >= 8 && layout <= 10)
||
(layout >= 16 && layout <= 20);
}