[PATCH v2 3/4] btrfs-progs: raid56: Introduce new function to calculate raid5 parity or data stripe

2016-10-24 Thread Qu Wenruo
Introduce new function raid5_gen_result() to calculate parity or data stripe. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- Changelog: v2: None --- disk-io.h | 1 + raid56.c | 63

[PATCH v2 3/4] btrfs-progs: raid56: Introduce new function to calculate raid5 parity or data stripe

2016-09-29 Thread Qu Wenruo
Introduce new function raid5_gen_result() to calculate parity or data stripe. Signed-off-by: Qu Wenruo --- v2: Patch split Change parameter type from void* to char* for xor_range() Change parameter order for xxor_range() Handle unaligned memory address for