From af2f208ff4f40e44069ede605a5e21148de053de Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 22 Feb 2010 10:59:40 +0000 Subject: common-utils: gf_log2 handles 0 input Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 583 (filesystem access hangs while deleting large files) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=583 --- xlators/performance/io-cache/src/io-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance') diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index f01d8e3bb..0c015caa4 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1409,7 +1409,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) { -- cgit