block, bfq: remove unsed parameter reason in bfq_bfqq_is_slow
authorKemeng Shi <shikemeng@huaweicloud.com>
Mon, 16 Jan 2023 09:51:47 +0000 (17:51 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Jan 2023 03:03:49 +0000 (20:03 -0700)
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>
block/bfq-iosched.c

index 8836221..f038b4d 100644 (file)
@@ -4152,8 +4152,7 @@ static void __bfq_bfqq_recalc_budget(struct bfq_data *bfqd,
  * function to evaluate the I/O speed of a process.
  */
 static bool bfq_bfqq_is_slow(struct bfq_data *bfqd, struct bfq_queue *bfqq,
-                                bool compensate, enum bfqq_expiration reason,
-                                unsigned long *delta_ms)
+                                bool compensate, unsigned long *delta_ms)
 {
        ktime_t delta_ktime;
        u32 delta_usecs;
@@ -4349,7 +4348,7 @@ void bfq_bfqq_expire(struct bfq_data *bfqd,
        /*
         * Check whether the process is slow (see bfq_bfqq_is_slow).
         */
-       slow = bfq_bfqq_is_slow(bfqd, bfqq, compensate, reason, &delta);
+       slow = bfq_bfqq_is_slow(bfqd, bfqq, compensate, &delta);
 
        /*
         * As above explained, charge slow (typically seeky) and