* [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const
@ 2024-09-11 21:41 Colin Ian King
2024-09-11 21:57 ` Tejun Heo
2024-09-11 22:05 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Colin Ian King @ 2024-09-11 21:41 UTC (permalink / raw)
To: Tejun Heo, Josef Bacik, Jens Axboe, cgroups, linux-block
Cc: kernel-janitors, linux-kernel
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>
---
block/blk-iocost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
index 5a6098a3db57..9dc9323f84ac 100644
--- 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,
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const
2024-09-11 21:41 [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const Colin Ian King
@ 2024-09-11 21:57 ` Tejun Heo
2024-09-11 22:05 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2024-09-11 21:57 UTC (permalink / raw)
To: Colin Ian King
Cc: Josef Bacik, Jens Axboe, cgroups, linux-block, kernel-janitors,
linux-kernel
On Wed, Sep 11, 2024 at 10:41:24PM +0100, Colin Ian King wrote:
> 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>
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const
2024-09-11 21:41 [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const Colin Ian King
2024-09-11 21:57 ` Tejun Heo
@ 2024-09-11 22:05 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2024-09-11 22:05 UTC (permalink / raw)
To: Tejun Heo, Josef Bacik, cgroups, linux-block, Colin Ian King
Cc: kernel-janitors, linux-kernel
On Wed, 11 Sep 2024 22:41:24 +0100, Colin Ian King wrote:
> The static array vrate_adj_pct is 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,
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-11 22:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 21:41 [PATCH][next] blk_iocost: make read-only static array vrate_adj_pct const Colin Ian King
2024-09-11 21:57 ` Tejun Heo
2024-09-11 22:05 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox