Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346091
b: refs/heads/master
c: 3b7cd45
h: refs/heads/master
i:
  346089: 4055582
  346087: a0c9722
v: v3
  • Loading branch information
David Howells authored and Philipp Reisner committed Nov 8, 2012
1 parent cb59346 commit 3143b74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dff2902208364d058746ee794da4d960f6eec6f
refs/heads/master: 3b7cd457d0c8458f6a4df2854f75fd80c0338f93
2 changes: 1 addition & 1 deletion trunk/drivers/block/drbd/drbd_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ static inline void drbd_get_syncer_progress(struct drbd_conf *mdev,
* Note: currently we don't support such large bitmaps on 32bit
* arch anyways, but no harm done to be prepared for it here.
*/
unsigned int shift = mdev->rs_total >= (1ULL << 32) ? 16 : 10;
unsigned int shift = mdev->rs_total > UINT_MAX ? 16 : 10;
unsigned long left = *bits_left >> shift;
unsigned long total = 1UL + (mdev->rs_total >> shift);
unsigned long tmp = 1000UL - left * 1000UL/total;
Expand Down

0 comments on commit 3143b74

Please sign in to comment.