Skip to content

Commit 1da30f9

Browse files
Baolin Wangaxboe
Baolin Wang
authored andcommitted
blk-throttle: Re-use the throtl_set_slice_end()
Re-use throtl_set_slice_end() to remove duplicate code. Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 2937967 commit 1da30f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-throttle.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ static inline void throtl_set_slice_end(struct throtl_grp *tg, bool rw,
808808
static inline void throtl_extend_slice(struct throtl_grp *tg, bool rw,
809809
unsigned long jiffy_end)
810810
{
811-
tg->slice_end[rw] = roundup(jiffy_end, tg->td->throtl_slice);
811+
throtl_set_slice_end(tg, rw, jiffy_end);
812812
throtl_log(&tg->service_queue,
813813
"[%c] extend slice start=%lu end=%lu jiffies=%lu",
814814
rw == READ ? 'R' : 'W', tg->slice_start[rw],

0 commit comments

Comments
 (0)