Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block, bfq: remove unsed parameter reason in bfq_bfqq_is_slow

Parameter reason is never used, just remove it.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230116095153.3810101-3-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Kemeng Shi and committed by
Jens Axboe
bebeb9e5 0c3e09e8

+2 -3
+2 -3
block/bfq-iosched.c
··· 4152 4152 * function to evaluate the I/O speed of a process. 4153 4153 */ 4154 4154 static bool bfq_bfqq_is_slow(struct bfq_data *bfqd, struct bfq_queue *bfqq, 4155 - bool compensate, enum bfqq_expiration reason, 4156 - unsigned long *delta_ms) 4155 + bool compensate, unsigned long *delta_ms) 4157 4156 { 4158 4157 ktime_t delta_ktime; 4159 4158 u32 delta_usecs; ··· 4348 4349 /* 4349 4350 * Check whether the process is slow (see bfq_bfqq_is_slow). 4350 4351 */ 4351 - slow = bfq_bfqq_is_slow(bfqd, bfqq, compensate, reason, &delta); 4352 + slow = bfq_bfqq_is_slow(bfqd, bfqq, compensate, &delta); 4352 4353 4353 4354 /* 4354 4355 * As above explained, charge slow (typically seeky) and