block/mq-deadline: Remove some unused functions
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 19 Apr 2024 02:56:10 +0000 (10:56 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Apr 2024 14:10:36 +0000 (08:10 -0600)
These functions are defined in the mq-deadline.c file, but not called
elsewhere, so delete these unused functions.

block/mq-deadline.c:134:1: warning: unused function 'deadline_earlier_request'.
block/mq-deadline.c:148:1: warning: unused function 'deadline_latter_request'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8803
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240419025610.34298-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c

index dce8d746b5bd140a728181e56fc4affd71beeaab..94eede4fb9ebed770209ba62454c1cdb5dedae68 100644 (file)
@@ -127,34 +127,6 @@ static u8 dd_rq_ioclass(struct request *rq)
        return IOPRIO_PRIO_CLASS(req_get_ioprio(rq));
 }
 
-/*
- * get the request before `rq' in sector-sorted order
- */
-static inline struct request *
-deadline_earlier_request(struct request *rq)
-{
-       struct rb_node *node = rb_prev(&rq->rb_node);
-
-       if (node)
-               return rb_entry_rq(node);
-
-       return NULL;
-}
-
-/*
- * get the request after `rq' in sector-sorted order
- */
-static inline struct request *
-deadline_latter_request(struct request *rq)
-{
-       struct rb_node *node = rb_next(&rq->rb_node);
-
-       if (node)
-               return rb_entry_rq(node);
-
-       return NULL;
-}
-
 /*
  * Return the first request for which blk_rq_pos() >= @pos.
  */