diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-10-08 05:52:29 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-08 16:01:38 +0200 |
commit | 1da30f952a81718a9c3b651121a274b093f44932 (patch) | |
tree | 2c484424fec910d6e3c141fe7bf33b6ee50cc25f /block | |
parent | blk-throttle: Open code __throtl_de/enqueue_tg() (diff) | |
download | linux-1da30f952a81718a9c3b651121a274b093f44932.tar.xz linux-1da30f952a81718a9c3b651121a274b093f44932.zip |
blk-throttle: Re-use the throtl_set_slice_end()
Re-use throtl_set_slice_end() to remove duplicate code.
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-throttle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index fc5c14f66673..b771c4299982 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -808,7 +808,7 @@ static inline void throtl_set_slice_end(struct throtl_grp *tg, bool rw, static inline void throtl_extend_slice(struct throtl_grp *tg, bool rw, unsigned long jiffy_end) { - tg->slice_end[rw] = roundup(jiffy_end, tg->td->throtl_slice); + throtl_set_slice_end(tg, rw, jiffy_end); throtl_log(&tg->service_queue, "[%c] extend slice start=%lu end=%lu jiffies=%lu", rw == READ ? 'R' : 'W', tg->slice_start[rw], |