summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-02-22 10:59:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-22 08:51:36 -0800
commit5f524f4b2f0dbccfe6c8d4aab16ce425dd6d2b50 (patch)
treedc905bcb244e3c9b24ba890318f90c22bb7d6b84 /xlators
parent2a78ca786da6233cce3ed9603676aa9ef293e3cf (diff)
common-utils: gf_log2 handles 0 input
Signed-off-by: Anand V. Avati <avati@amp.gluster.com> Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 583 (filesystem access hangs while deleting large files) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=583
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 020a9f162..16d29109a 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1462,7 +1462,7 @@ init (xlator_t *this)
ret = 0;
ctx = this->ctx;
- ioc_log2_page_size = gf_log2 (ctx->page_size);
+ ioc_log2_page_size = log_base2 (ctx->page_size);
out:
if (ret == -1) {