Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263133
b: refs/heads/master
c: e5a94f5
h: refs/heads/master
i:
  263131: 0cf3d80
v: v3
  • Loading branch information
Shaohua Li authored and Jens Axboe committed Aug 1, 2011
1 parent 650c552 commit 637c600
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 05eb0f252b04aa94ace0794f73d56c6a02351d80
refs/heads/master: e5a94f56845bb4b272d82e84b5a1e2080b07ba82
4 changes: 2 additions & 2 deletions trunk/block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ static bool tg_may_dispatch(struct throtl_data *td, struct throtl_grp *tg,
static void throtl_charge_bio(struct throtl_grp *tg, struct bio *bio)
{
bool rw = bio_data_dir(bio);
bool sync = bio->bi_rw & REQ_SYNC;
bool sync = rw_is_sync(bio->bi_rw);

/* Charge the bio to the group */
tg->bytes_disp[rw] += bio->bi_size;
Expand Down Expand Up @@ -1150,7 +1150,7 @@ int blk_throtl_bio(struct request_queue *q, struct bio **biop)

if (tg_no_rule_group(tg, rw)) {
blkiocg_update_dispatch_stats(&tg->blkg, bio->bi_size,
rw, bio->bi_rw & REQ_SYNC);
rw, rw_is_sync(bio->bi_rw));
rcu_read_unlock();
return 0;
}
Expand Down

0 comments on commit 637c600

Please sign in to comment.