blk_iocost: make read-only static array vrate_adj_pct const
Subsystems (4)
PATCH 1/1 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]>
--- block/blk-iocost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-iocost.c +1 -1
@@ -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 ,
Signature · 1 line
2.39.2
Quoted 4 lines · Colin Ian King
The static array
vrate_adj_pctis read-only, so make it const as well.Signed-off-by Colin Ian King <[email protected]>
Acked-by Tejun Heo <[email protected]>
Thanks.
Signature · 1 line
tejun
Quoted 4 lines · Colin Ian King
The static array
vrate_adj_pctis read-only, so make it const as well.
Applied, thanks!
[1/1] blk_iocost: make read-only static array vrate_adj_pct const
commit: cc089684664ebd379f1451aab65eb50f4008b381
Best regards,
Signature · 1 line
Jens Axboe