From 73b9ede7e115fab245b0f59d18e4d6cc4d297cec Mon Sep 17 00:00:00 2001 From: Zhou Zhengping Date: Sat, 16 Jul 2016 21:43:58 -0400 Subject: core: add a basis function to reduce verbose code Change-Id: Icebe1b865edb317685e93f3ef11d98fd9b2c2e9a BUG: 1357226 Signed-off-by: Zhou Zhengping Reviewed-on: http://review.gluster.org/14936 Reviewed-by: Niels de Vos Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System --- xlators/performance/md-cache/src/md-cache.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'xlators/performance') diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index 1ad9e8ebda1..0a4d3c78ead 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -99,22 +99,6 @@ static struct mdc_key { } }; - -static uint64_t -gfid_to_ino (uuid_t gfid) -{ - uint64_t ino = 0; - int i = 0, j = 0; - - for (i = 15; i > (15 - 8); i--) { - ino += (uint64_t)(gfid[i]) << j; - j += 8; - } - - return ino; -} - - struct mdc_local; typedef struct mdc_local mdc_local_t; -- cgit