Skip to contentSkip to conversation

blkdev.h: remove unused codes blk_account_rq

PATCH Applied Lin Feng 2 participants 2 messages May 12, 2021 Block layer

lore
Share & tools
lore

Lin Feng

author
#0 lore raw

PATCH 1/1 blkdev.h: remove unused codes blk_account_rq

Last users of blk_account_rq gone with patch commit a1ce35fa49852db ("block: remove dead elevator code") and now it gets no caller, it can be safely removed.

---
 include/linux/blkdev.h | 5 -----
 1 file changed, 5 deletions(-)
include/linux/blkdev.h +0 -5
index 1255823b2bc0..f69c75bd6d27 100644
@@ -676,11 +676,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)
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Lin Feng

Last users of blk_account_rq gone with patch commit a1ce35fa49852db ("block: remove dead elevator code") and now it gets no caller, it can be safely removed.

Applied, thanks.

Signature · 1 line
Jens Axboe