diff options
| author | Zhou Zhengping <johnzzpcrystal@gmail.com> | 2016-07-16 21:43:58 -0400 | 
|---|---|---|
| committer | Jeff Darcy <jdarcy@redhat.com> | 2016-07-18 04:59:05 -0700 | 
| commit | 73b9ede7e115fab245b0f59d18e4d6cc4d297cec (patch) | |
| tree | 88b9b003486c7b98241d93069e7fa773508b1284 /xlators/performance/md-cache | |
| parent | 939184c6709db1391d38c892e098c20519d746cc (diff) | |
core: add a basis function to reduce verbose code
Change-Id: Icebe1b865edb317685e93f3ef11d98fd9b2c2e9a
BUG: 1357226
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
Reviewed-on: http://review.gluster.org/14936
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/performance/md-cache')
| -rw-r--r-- | xlators/performance/md-cache/src/md-cache.c | 16 | 
1 files changed, 0 insertions, 16 deletions
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;  | 
