Commit 28c6def0 authored by Jan Kara's avatar Jan Kara Committed by Jens Axboe

bfq: Use 'ttime' local variable

Use local variable 'ttime' instead of dereferencing bfqq.
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Acked-by: default avatarPaolo Valente <paolo.valente@linaro.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 41e76c85
...@@ -5282,7 +5282,7 @@ static void bfq_update_io_thinktime(struct bfq_data *bfqd, ...@@ -5282,7 +5282,7 @@ static void bfq_update_io_thinktime(struct bfq_data *bfqd,
elapsed = min_t(u64, elapsed, 2ULL * bfqd->bfq_slice_idle); elapsed = min_t(u64, elapsed, 2ULL * bfqd->bfq_slice_idle);
ttime->ttime_samples = (7*bfqq->ttime.ttime_samples + 256) / 8; ttime->ttime_samples = (7*ttime->ttime_samples + 256) / 8;
ttime->ttime_total = div_u64(7*ttime->ttime_total + 256*elapsed, 8); ttime->ttime_total = div_u64(7*ttime->ttime_total + 256*elapsed, 8);
ttime->ttime_mean = div64_ul(ttime->ttime_total + 128, ttime->ttime_mean = div64_ul(ttime->ttime_total + 128,
ttime->ttime_samples); ttime->ttime_samples);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment