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 <[email protected]> Acked-by: Tejun Heo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent eb1d46f commit cc08968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)