OSDN Git Service

block, bfq: remove dead code for updating 'rq_in_driver'
authorYu Kuai <yukuai3@huawei.com>
Wed, 2 Nov 2022 02:25:41 +0000 (10:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Nov 2022 02:10:55 +0000 (20:10 -0600)
Such code are not even compiled since they are inside marco "#if 0".

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Paolo Valente <paolo.valente@unimore.it>
Link: https://lore.kernel.org/r/20221102022542.3621219-5-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c

index 42aa5fc..2381cf2 100644 (file)
@@ -2321,22 +2321,6 @@ static sector_t get_sdist(sector_t last_pos, struct request *rq)
        return 0;
 }
 
-#if 0 /* Still not clear if we can do without next two functions */
-static void bfq_activate_request(struct request_queue *q, struct request *rq)
-{
-       struct bfq_data *bfqd = q->elevator->elevator_data;
-
-       bfqd->rq_in_driver++;
-}
-
-static void bfq_deactivate_request(struct request_queue *q, struct request *rq)
-{
-       struct bfq_data *bfqd = q->elevator->elevator_data;
-
-       bfqd->rq_in_driver--;
-}
-#endif
-
 static void bfq_remove_request(struct request_queue *q,
                               struct request *rq)
 {