bfq: Use 'ttime' local variable
Use local variable 'ttime' instead of dereferencing bfqq. Signed-off-by: Jan Kara <jack@suse.cz> Acked-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> (cherry picked from commit 28c6def009192b673f92ea357dfb535ba15e00a4) (cherry picked from commit bb2a213aa0a2b717c3a6e7848c6f82656d80897f) (cherry picked from commit 2e0cfffb9a6da88cb1a786fb95618bfa714fea32) (cherry picked from commit caff780963fdfda0ab456c24027298482d745b2f) (cherry picked from commit b893b660ea8e998b760d48faeed2834e483158ad) (cherry picked from commit 7e3d952af5fdcf6b02d01d55dbf658fbc2d67f41) (cherry picked from commit 033b49f66e3808fead9e65e7c9417f26d423374f)
This commit is contained in:
parent
fdcb87e105
commit
b93af2c415
1 changed files with 1 additions and 1 deletions
|
@ -5245,7 +5245,7 @@ static void bfq_update_io_thinktime(struct bfq_data *bfqd,
|
|||
|
||||
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_mean = div64_ul(ttime->ttime_total + 128,
|
||||
ttime->ttime_samples);
|
||||
|
|
Loading…
Reference in a new issue