diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-09-30 13:04:56 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:33 +0100 |
commit | ef67f448c725f8ebc02660067e37911bd6dc8e4c (patch) | |
tree | bd6d9cb82310c40b2cf77a847f064bc2e9f6b526 /disk-io.h | |
parent | 144a19145e248513c7a676defad59836830535c6 (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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); #endif |