diff options
author | Zhou Zhengping <johnzzpcrystal@gmail.com> | 2017-03-31 00:42:46 +0800 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-05-05 15:04:17 +0000 |
commit | fe83a4ae84dd4345d6e958219d5a1dc59ecb039d (patch) | |
tree | ee99ad6503e434e11fb9c85d0da38c7a26c9dc1b /xlators/encryption/crypt/src/crypt.h | |
parent | fa10c8a3528b95dc575bfedd30bcd68cc2dff25b (diff) |
coreutils: use coreutils instead of duplicate code
Change-Id: I0e442331d2bbb22ec18c37af87ab2a8852737c43
BUG: 1448265
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
Reviewed-on: https://review.gluster.org/16975
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/encryption/crypt/src/crypt.h')
-rw-r--r-- | xlators/encryption/crypt/src/crypt.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/xlators/encryption/crypt/src/crypt.h b/xlators/encryption/crypt/src/crypt.h index c1bfe3fcd0c..6c014535f0a 100644 --- a/xlators/encryption/crypt/src/crypt.h +++ b/xlators/encryption/crypt/src/crypt.h @@ -465,7 +465,6 @@ void submit_full(call_frame_t *frame, xlator_t *this); /* crypt.c */ end_writeback_handler_t dispatch_end_writeback(glusterfs_fop_t fop); -static size_t iovec_get_size(struct iovec *vec, uint32_t count); void set_local_io_params_writev(call_frame_t *frame, struct object_cipher_info *object, struct rmw_atom *atom, off_t io_offset, @@ -479,15 +478,6 @@ void rename_unwind(call_frame_t *frame); /* Inline functions */ -static inline size_t iovec_get_size(struct iovec *vec, uint32_t count) -{ - int i; - size_t size = 0; - for (i = 0; i < count; i++) - size += vec[i].iov_len; - return size; -} - static inline int32_t crypt_xlator_id(void) { return CRYPT_XLATOR_ID; |