diff options
author | Anand Avati <avati@redhat.com> | 2012-10-09 17:40:18 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-13 10:41:59 -0700 |
commit | 5b5453c3d6da0af8f2104c201d85ea4e795b6f17 (patch) | |
tree | ed97555f1e590f91c894dc4c80497f324ec52a29 /xlators/performance/write-behind | |
parent | 49fad94c91bfba557d77e179bb020b70c0e18fbc (diff) |
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 <avati@redhat.com>
Reviewed-on: http://review.gluster.org/4079
Diffstat (limited to 'xlators/performance/write-behind')
-rw-r--r-- | xlators/performance/write-behind/src/write-behind.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |