diff options
| author | Kaleb S KEITHLEY <kkeithle@redhat.com> | 2015-11-18 12:28:42 -0500 | 
|---|---|---|
| committer | Niels de Vos <ndevos@redhat.com> | 2016-01-18 01:02:34 -0800 | 
| commit | 50ae3e67e4f294925fc840d3f83b77f7072af54d (patch) | |
| tree | d682399e0b506b09d3106ea69c0518ea6cd8e0d8 /xlators/features/bit-rot/src/stub/bit-rot-stub.c | |
| parent | f3e03c9d47b7438a6f124e01e2f459c2b72b1c29 (diff) | |
all: reduce "inline" usage
There are three kinds of inline functions: plain inline, extern inline,
and static inline.  All three have been removed from .c files, except
those in "contrib" which aren't our problem.  Inlines in .h files, which
are overwhelmingly "static inline" already, have generally been left
alone.  Over time we should be able to "lower" these into .c files, but
that has to be done in a case-by-case fashion requiring more manual
effort.  This part was easy to do automatically without (as far as I can
tell) any ill effect.
In the process, several pieces of dead code were flagged by the
compiler, and were removed.
backport of Change-Id: I56a5e614735c9e0a6ee420dab949eac22e25c155,
http://review.gluster.org/11769, BUG: 1245331
Change-Id: Iba1efb0bc578ea4a5e9bf76b7bd93dc1be9eba44
BUG: 1283302
Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/12646
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot/src/stub/bit-rot-stub.c')
| -rw-r--r-- | xlators/features/bit-rot/src/stub/bit-rot-stub.c | 32 | 
1 files changed, 16 insertions, 16 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub.c b/xlators/features/bit-rot/src/stub/bit-rot-stub.c index 7f455f2f510..bbb2c92acf3 100644 --- a/xlators/features/bit-rot/src/stub/bit-rot-stub.c +++ b/xlators/features/bit-rot/src/stub/bit-rot-stub.c @@ -247,7 +247,7 @@ fini (xlator_t *this)  	return;  } -static inline int +static int  br_stub_alloc_versions (br_version_t **obuf,                          br_signature_t **sbuf, size_t signaturelen)  { @@ -277,13 +277,13 @@ br_stub_alloc_versions (br_version_t **obuf,          return -1;  } -static inline void +static void  br_stub_dealloc_versions (void *mem)  {          GF_FREE (mem);  } -static inline br_stub_local_t * +static br_stub_local_t *  br_stub_alloc_local (xlator_t *this)  {          br_stub_private_t *priv = this->private; @@ -291,13 +291,13 @@ br_stub_alloc_local (xlator_t *this)          return mem_get0 (priv->local_pool);  } -static inline void +static void  br_stub_dealloc_local (br_stub_local_t *ptr)  {          mem_put (ptr);  } -static inline int +static int  br_stub_prepare_version_request (xlator_t *this, dict_t *dict,                                  br_version_t *obuf, unsigned long oversion)  { @@ -310,7 +310,7 @@ br_stub_prepare_version_request (xlator_t *this, dict_t *dict,                                      (void *)obuf, sizeof (br_version_t));  } -static inline int +static int  br_stub_prepare_signing_request (dict_t *dict,                                   br_signature_t *sbuf,                                   br_isignature_t *sign, size_t signaturelen) @@ -329,7 +329,7 @@ br_stub_prepare_signing_request (dict_t *dict,   * context, hence the inode is marked dirty. this routine also   * initializes the transient inode version.   */ -static inline int +static int  br_stub_init_inode_versions (xlator_t *this, fd_t *fd, inode_t *inode,                               unsigned long version, gf_boolean_t markdirty,                               gf_boolean_t bad_object) @@ -370,7 +370,7 @@ free_ctx:  /**   * modify the ongoing version of an inode.   */ -static inline int +static int  br_stub_mod_inode_versions (xlator_t *this,                              fd_t *fd, inode_t *inode, unsigned long version)  { @@ -395,7 +395,7 @@ unblock:          return ret;  } -static inline void +static void  br_stub_fill_local (br_stub_local_t *local,                      call_stub_t *stub, fd_t *fd, inode_t *inode, uuid_t gfid,                      int versioningtype, unsigned long memversion) @@ -410,7 +410,7 @@ br_stub_fill_local (br_stub_local_t *local,          gf_uuid_copy (local->u.context.gfid, gfid);  } -static inline void +static void  br_stub_cleanup_local (br_stub_local_t *local)  {          local->fopstub = NULL; @@ -696,7 +696,7 @@ br_stub_fd_versioning (xlator_t *this, call_frame_t *frame,          return ret;  } -static inline int +static int  br_stub_perform_incversioning (xlator_t *this,                                 call_frame_t *frame, call_stub_t *stub,                                 fd_t *fd, br_stub_inode_ctx_t *ctx) @@ -804,7 +804,7 @@ orderq (struct list_head *elem1, struct list_head *elem2)          return (s1->v > s2->v);  } -static inline int +static int  br_stub_compare_sign_version (xlator_t *this,                                inode_t *inode,                                br_signature_t *sbuf, @@ -854,7 +854,7 @@ br_stub_compare_sign_version (xlator_t *this,          return ret;  } -static inline int +static int  br_stub_prepare_signature (xlator_t *this,                             dict_t *dict, inode_t *inode,                             br_isignature_t *sign, int *fakesuccess) @@ -1548,7 +1548,7 @@ br_stub_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          return 0;  } -static inline void +static void  br_stub_send_stub_init_time (call_frame_t *frame, xlator_t *this)  {          int op_ret = 0; @@ -2369,7 +2369,7 @@ unwind:   * successfully allocate the dict? Posix does not treat call back xdata   * creattion failure as the lookup failure.   */ -static inline int32_t +static int32_t  br_stub_lookup_version (xlator_t *this,                          uuid_t gfid, inode_t *inode, dict_t *xattr)  { @@ -2812,7 +2812,7 @@ br_stub_noop (call_frame_t *frame, void *cookie, xlator_t *this,          return 0;  } -static inline void +static void  br_stub_send_ipc_fop (xlator_t *this, fd_t *fd, unsigned long releaseversion,                        int sign_info)  {  | 
