Skip to content

Commit cc08968

Browse files
ColinIanKingaxboe
authored andcommitted
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 <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>
1 parent eb1d46f commit cc08968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/blk-iocost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ static const struct ioc_params autop[] = {
648648
* vrate adjust percentages indexed by ioc->busy_level. We adjust up on
649649
* vtime credit shortage and down on device saturation.
650650
*/
651-
static u32 vrate_adj_pct[] =
651+
static const u32 vrate_adj_pct[] =
652652
{ 0, 0, 0, 0,
653653
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
654654
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

0 commit comments

Comments
 (0)