projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb1d46f
)
blk_iocost: make read-only static array vrate_adj_pct const
author
Colin Ian King
<colin.i.king@gmail.com>
Wed, 11 Sep 2024 21:41:24 +0000
(22:41 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 11 Sep 2024 22:05:26 +0000
(16:05 -0600)
The static array vrate_adj_pct is read-only, so make it const as
well.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link:
https://lore.kernel.org/r/20240911214124.197403-1-colin.i.king@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-iocost.c
b/block/blk-iocost.c
index 5a6098a3db57e065eb5dcff135178cdf19219cbf..9dc9323f84ac1c1f722ef45047189d8215a50ef3 100644
(file)
--- 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,