diff options
author | NeilBrown <neilb@suse.de> | 2009-10-16 16:27:34 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-10-16 16:27:34 +1100 |
commit | e4424fee1815f996dccd36be44d68ca160ec3e1b (patch) | |
tree | 13e67731367d28451fdb1dcfbf4e085ce236f9b9 /drivers/md/raid5.h | |
parent | 417b8d4ac868cf58d6c68f52d72f7648413e0edc (diff) | |
download | op-kernel-dev-e4424fee1815f996dccd36be44d68ca160ec3e1b.zip op-kernel-dev-e4424fee1815f996dccd36be44d68ca160ec3e1b.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index dcefdc9..dd70835 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); } |