From 6e7d9a4e77a764e86bcde4e704ec05a3c84f9c11 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 24 Mar 2015 12:09:52 +0530 Subject: cluster/ec: Refactor inode-writev All _cbk() functions in inode-write.c do same things, i.e. store op_ret/op_errno, stat structures if they are available and combine them. Moved this common operation into one function ec_inode_write_cbk() and made all the other _cbk() functions to use this instead. Change-Id: I2387b9f2d9598ced6299a26ea1900e9deb9fadc4 BUG: 1199767 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9981 Tested-by: Gluster Build System Reviewed-by: Dan Lambright --- xlators/cluster/ec/src/ec-combine.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/ec/src/ec-combine.h') diff --git a/xlators/cluster/ec/src/ec-combine.h b/xlators/cluster/ec/src/ec-combine.h index 360844ccd71..cae2bb9274f 100644 --- a/xlators/cluster/ec/src/ec-combine.h +++ b/xlators/cluster/ec/src/ec-combine.h @@ -31,4 +31,7 @@ int32_t ec_dict_combine(ec_cbk_data_t * cbk, int32_t which); void ec_combine(ec_cbk_data_t * cbk, ec_combine_f combine); +int32_t +ec_combine_write (ec_fop_data_t *fop, ec_cbk_data_t *dst, + ec_cbk_data_t *src); #endif /* __EC_COMBINE_H__ */ -- cgit