diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-03-24 12:09:52 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-04-06 22:35:07 -0700 |
commit | 6e7d9a4e77a764e86bcde4e704ec05a3c84f9c11 (patch) | |
tree | 1107ff62bac604d5b05df73281a00e6d1a22cb9a /xlators/cluster/ec/src/ec-combine.h | |
parent | 0e23ce3fbcf1f138105476cf3b86342268e259d9 (diff) |
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 <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/9981
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-combine.h')
-rw-r--r-- | xlators/cluster/ec/src/ec-combine.h | 3 |
1 files changed, 3 insertions, 0 deletions
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__ */ |