lib/raid6: cleanup gen_syndrome function selection
authorJim Kukunas <james.t.kukunas@linux.intel.com>
Tue, 22 May 2012 03:54:24 +0000 (13:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:54:24 +0000 (13:54 +1000)
commit96e67703e71f4b3cc32b747dbb6158ec74d01e19
tree7abe4800c1827f5d3b3af42abeb19c8c3ac24df0
parent2dbf708448c836754d25fe6108c5bfe1f5697c95
lib/raid6: cleanup gen_syndrome function selection

Reorders functions in raid6_algos as well as the preference check
to reduce the number of functions tested on initialization.

Also, creates symmetry between choosing the gen_syndrome functions
and choosing the recovery functions.

Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
lib/raid6/algos.c