From b87848617b9842e7943f67596a441e4c052c3b81 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Tue, 19 Jul 2016 16:20:15 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/14957 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Dan Lambright --- libglusterfs/src/common-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') 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, -- cgit