path: root/disk-io.h
diff options
authorQu Wenruo <>2016-09-30 13:04:56 +0800
committerDavid Sterba <>2016-12-14 15:06:33 +0100
commitef67f448c725f8ebc02660067e37911bd6dc8e4c (patch)
treebd6d9cb82310c40b2cf77a847f064bc2e9f6b526 /disk-io.h
parent144a19145e248513c7a676defad59836830535c6 (diff)
btrfs-progs: raid56: Introduce new function to calculate raid5 parity or data stripe
Introduce new function raid5_gen_result() to calculate parity or data stripe. Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'disk-io.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/disk-io.h b/disk-io.h
index d4a0e7fc..1c8387e7 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -199,5 +199,6 @@ int write_and_map_eb(struct btrfs_trans_handle *trans, struct btrfs_root *root,
/* raid56.c */
void raid6_gen_syndrome(int disks, size_t bytes, void **ptrs);
+int raid5_gen_result(int nr_devs, size_t stripe_len, int dest, void **data);