From 5f524f4b2f0dbccfe6c8d4aab16ce425dd6d2b50 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 --- libglusterfs/src/common-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/common-utils.h') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 05acfd83d..9c1c93ebf 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -332,7 +332,7 @@ int gf_lockfd (int fd); int gf_unlockfd (int fd); int get_checksum_for_file (int fd, uint32_t *checksum); -int gf_log2 (unsigned long x); +int log_base2 (unsigned long x); #endif /* _COMMON_UTILS_H */ -- cgit