summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-01-25 15:03:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-22 02:11:03 -0800
commit8d69845dfdd31b798fb02b08a1eabbc88d31243c (patch)
tree54e764a2d38b177b512c8eecc6398c5399533df7 /xlators/performance
parentea0634bf88dd63294559c2e4542b73b772b7ec56 (diff)
io-threads: whitespace cleanup
Signed-off-by: Anand Avati <avati@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2241 (GlusterFs Stat Actions Degrade During I/O) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2241
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index 7aaeed96249..39943f6330a 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -1958,6 +1958,7 @@ iot_fxattrop_wrapper (call_frame_t *frame, xlator_t *this, fd_t *fd,
return 0;
}
+
int
iot_fxattrop (call_frame_t *frame, xlator_t *this, fd_t *fd,
gf_xattrop_flags_t optype, dict_t *xattr)
@@ -2114,6 +2115,7 @@ set_stack_size (iot_conf_t *conf)
}
}
+
int32_t
mem_acct_init (xlator_t *this)
{
@@ -2123,24 +2125,23 @@ mem_acct_init (xlator_t *this)
return ret;
ret = xlator_mem_acct_init (this, gf_iot_mt_end + 1);
-
+
if (ret != 0) {
gf_log (this->name, GF_LOG_ERROR, "Memory accounting init"
"failed");
return ret;
}
-
-
return ret;
}
+
int
validate_options ( xlator_t *this, dict_t *options, char **op_errstr)
{
int ret = 0;
int thread_count;
-
+
if (dict_get (options, "thread-count")) {
thread_count = data_to_int32 (dict_get (options,
@@ -2161,16 +2162,12 @@ validate_options ( xlator_t *this, dict_t *options, char **op_errstr)
ret = -1;
goto out;
}
-
-
}
ret = 0;
out:
- return ret;
-
-
+ return ret;
}
@@ -2184,7 +2181,7 @@ reconfigure ( xlator_t *this, dict_t *options)
conf = this->private;
if (!conf)
goto out;
-
+
thread_count = conf->max_count;
if (dict_get (options, "thread-count")) {
@@ -2208,8 +2205,7 @@ reconfigure ( xlator_t *this, dict_t *options)
}
conf->max_count = thread_count;
- }
- else
+ } else
conf->max_count = thread_count;
ret = 0;
@@ -2218,6 +2214,7 @@ out:
return ret;
}
+
int
init (xlator_t *this)
{