Skip to content

Commit 190515f

Browse files
linfeng2999axboe
authored andcommitted
blkdev.h: remove unused codes blk_account_rq
Last users of blk_account_rq gone with patch commit a1ce35f ("block: remove dead elevator code") and now it gets no caller, it can be safely removed. Signed-off-by: Lin Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 7ea96ee commit 190515f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/linux/blkdev.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,6 @@ bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q);
677677
extern void blk_set_pm_only(struct request_queue *q);
678678
extern void blk_clear_pm_only(struct request_queue *q);
679679

680-
static inline bool blk_account_rq(struct request *rq)
681-
{
682-
return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq);
683-
}
684-
685680
#define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist)
686681

687682
#define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)

0 commit comments

Comments
 (0)