Commit cc089684 authored by Colin Ian King's avatar Colin Ian King Committed by Jens Axboe

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: default avatarColin Ian King <colin.i.king@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20240911214124.197403-1-colin.i.king@gmail.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent eb1d46fc
...@@ -648,7 +648,7 @@ static const struct ioc_params autop[] = { ...@@ -648,7 +648,7 @@ static const struct ioc_params autop[] = {
* vrate adjust percentages indexed by ioc->busy_level. We adjust up on * vrate adjust percentages indexed by ioc->busy_level. We adjust up on
* vtime credit shortage and down on device saturation. * vtime credit shortage and down on device saturation.
*/ */
static u32 vrate_adj_pct[] = static const u32 vrate_adj_pct[] =
{ 0, 0, 0, 0, { 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
......
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