Skip to content

Commit

Permalink
blk-throttle: Use readable READ/WRITE macros
Browse files Browse the repository at this point in the history
Use readable READ/WRITE macros instead of magic numbers.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Baolin Wang authored and axboe committed Sep 15, 2020
1 parent b53b072 commit ff8b22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1428,8 +1428,8 @@ static void tg_conf_updated(struct throtl_grp *tg, bool global)
* that a group's limit are dropped suddenly and we don't want to
* account recently dispatched IO with new low rate.
*/
throtl_start_new_slice(tg, 0);
throtl_start_new_slice(tg, 1);
throtl_start_new_slice(tg, READ);
throtl_start_new_slice(tg, WRITE);

if (tg->flags & THROTL_TG_PENDING) {
tg_update_disptime(tg);
Expand Down

0 comments on commit ff8b22c

Please sign in to comment.