From 5b5453c3d6da0af8f2104c201d85ea4e795b6f17 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 9 Oct 2012 17:40:18 -0700 Subject: write-behind: use uint64_t for overlap comparison off_t is 'long int' (signed word) and therefore ULLONG_MAX - 1 Change-Id: I027de7a1b2ca24865d5d787f9986930e97911ca4 BUG: 857673 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/4079 --- xlators/performance/write-behind/src/write-behind.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/performance/write-behind/src') diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index ee533db20..ffa333ce8 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -232,10 +232,10 @@ out: gf_boolean_t wb_requests_overlap (wb_request_t *req1, wb_request_t *req2) { - off_t r1_start = 0; - off_t r1_end = 0; - off_t r2_start = 0; - off_t r2_end = 0; + uint64_t r1_start = 0; + uint64_t r1_end = 0; + uint64_t r2_start = 0; + uint64_t r2_end = 0; enum _gf_boolean do_overlap = 0; r1_start = req1->ordering.off; -- cgit