diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-08-16 09:27:05 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-30 10:15:01 -0600 |
commit | ef100397fac3e2e403d5d510e66f36e242654073 (patch) | |
tree | 6224e91a8084f8712089a73c4c14ea37d805a4bb /block/blk-throttle.h | |
parent | 6c1b980a7e79e55e951b4b2c47eefebc75071209 (diff) | |
download | linux-ef100397fac3e2e403d5d510e66f36e242654073.tar.gz linux-ef100397fac3e2e403d5d510e66f36e242654073.tar.bz2 linux-ef100397fac3e2e403d5d510e66f36e242654073.zip |
blk-throttle: print signed value 'carryover_bytes/ios' for user
'carryover_bytes/ios' can be negative, indicate that some bio is
dispatched in advance within slice while configuration is updated.
Print a huge value is not user-friendly.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230816012708.1193747-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-throttle.h')
-rw-r--r-- | block/blk-throttle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-throttle.h b/block/blk-throttle.h index d1ccbfe9f797..bffbc9cfc8ab 100644 --- a/block/blk-throttle.h +++ b/block/blk-throttle.h @@ -127,8 +127,8 @@ struct throtl_grp { * bytes/ios are waited already in previous configuration, and they will * be used to calculate wait time under new configuration. */ - uint64_t carryover_bytes[2]; - unsigned int carryover_ios[2]; + long long carryover_bytes[2]; + int carryover_ios[2]; unsigned long last_check_time; |