+61
−100
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Apart from 'prexor' which can only be set for RAID5, and 'qd_idx' which can only be meaningful for RAID6, these two chunks of code are nearly the same. So combine them into one adding a test to call either handle_parity_checks5 or handle_parity_checks6 as appropriate. Signed-off-by:NeilBrown <neilb@suse.de> Reviewed-by:
Namhyung Kim <namhyung@gmail.com>