diff options
author | Colin Ian King <[email protected]> | 2024-09-11 22:41:24 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-09-11 16:05:26 -0600 |
commit | cc089684664ebd379f1451aab65eb50f4008b381 (patch) | |
tree | 1d5572039bf0b92171b4446acdfff04d3169abcc | |
parent | eb1d46fcd5d672c9da84925ec38f1aca35d40940 (diff) |
blk_iocost: make read-only static array vrate_adj_pct const
The static array vrate_adj_pct is read-only, so make it const as
well.
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | block/blk-iocost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-iocost.c b/block/blk-iocost.c index 5a6098a3db57..9dc9323f84ac 100644 --- a/block/blk-iocost.c +++ b/block/blk-iocost.c @@ -648,7 +648,7 @@ static const struct ioc_params autop[] = { * vrate adjust percentages indexed by ioc->busy_level. We adjust up on * vtime credit shortage and down on device saturation. */ -static u32 vrate_adj_pct[] = +static const u32 vrate_adj_pct[] = { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |