]> Gentwo Git Trees - linux/.git/commit
block/blk-throttle: drop unneeded blk_stat_enable_accounting
authorGuenter Roeck <linux@roeck-us.net>
Fri, 14 Nov 2025 23:54:33 +0000 (15:54 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Nov 2025 16:39:48 +0000 (09:39 -0700)
commit20d0b359c73d15b25abea04066ef4cdbc6a8738d
treeac101db10d2f75acdcb1cbb3c7cada10dba15330
parentf76581f9f1d29e32e120b0242974ba266e79de58
block/blk-throttle: drop unneeded blk_stat_enable_accounting

After the removal of CONFIG_BLK_DEV_THROTTLING_LOW, it is no longer
necessary to enable block accounting, so remove the call to
blk_stat_enable_accounting(). With that, the track_bio_latency variable
is no longer used and can be deleted from struct throtl_data. Also,
including blk-stat.h is no longer necessary.

Fixes: bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW")
Cc: Yu Kuai <yukuai@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Reviewed-by: Yu Kuai <yukuai@fnnas.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c