Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359552
b: refs/heads/master
c: ed84825
h: refs/heads/master
v: v3
  • Loading branch information
paul.szabo@sydney.edu.au authored and Fengguang Wu committed Jan 24, 2013
1 parent 3d99242 commit 8716fab
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: 10ee27a06cc8eb57f83342a8eabcb75deb872d52
refs/heads/master: ed84825b785ceb932af7dd5aa08614801721320b
2 changes: 1 addition & 1 deletion trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ static unsigned long bdi_position_ratio(struct backing_dev_info *bdi,
* => fast response on large errors; small oscillation near setpoint
*/
setpoint = (freerun + limit) / 2;
x = div_s64((setpoint - dirty) << RATELIMIT_CALC_SHIFT,
x = div_s64(((s64)setpoint - (s64)dirty) << RATELIMIT_CALC_SHIFT,
limit - setpoint + 1);
pos_ratio = x;
pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT;
Expand Down

0 comments on commit 8716fab

Please sign in to comment.