Skip to content

Commit

Permalink
blkdev.h: remove unused codes blk_account_rq
Browse files Browse the repository at this point in the history
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 <linf@wangsu.com>
Link: https://lore.kernel.org/r/20210512100124.173769-1-linf@wangsu.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Lin Feng authored and Jens Axboe committed May 12, 2021
1 parent 7ea96ee commit 190515f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,6 @@ bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q);
extern void blk_set_pm_only(struct request_queue *q);
extern void blk_clear_pm_only(struct request_queue *q);

static inline bool blk_account_rq(struct request *rq)
{
return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq);
}

#define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist)

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

0 comments on commit 190515f

Please sign in to comment.