summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2016-07-19 16:20:15 +0530
committerDan Lambright <dlambrig@redhat.com>2016-10-26 13:53:05 -0700
commitb87848617b9842e7943f67596a441e4c052c3b81 (patch)
tree9d22a9bcabc712f48a831851c5ee4814e03f4e01 /libglusterfs/src
parent3a540cc12f171393751467e2de436311bdf9be6d (diff)
cluster/tier: break the monolith processing function
Break tier_migrate_using_query_file() into a more manageable tier_migrate_link() and helpers. Change-Id: I5eb2d2cff9e7a2a2da567c3c4c2d53aab195f477 BUG: 1358296 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: http://review.gluster.org/14957 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/common-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index 72613acba3b..082a44403dc 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -123,6 +123,8 @@ void trap (void);
#define GF_LEASE_ID_BUF_SIZE ((LEASE_ID_SIZE * 2) + \
(LEASE_ID_SIZE / 2))
+#define GF_PERCENTAGE(val, total) (((val)*100)/(total))
+
enum _gf_boolean
{
_gf_false = 0,