* [PATCH] blkdev.h: remove unused codes blk_account_rq
@ 2021-05-12 10:01 Lin Feng
2021-05-12 13:40 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Lin Feng @ 2021-05-12 10:01 UTC (permalink / raw)
To: axboe; +Cc: linux-block, linf, linux-kernel
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.
Signed-off-by: Lin Feng <linf@wangsu.com>
---
include/linux/blkdev.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 1255823b2bc0..f69c75bd6d27 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -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)
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] blkdev.h: remove unused codes blk_account_rq
2021-05-12 10:01 [PATCH] blkdev.h: remove unused codes blk_account_rq Lin Feng
@ 2021-05-12 13:40 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-05-12 13:40 UTC (permalink / raw)
To: Lin Feng; +Cc: linux-block, linux-kernel
On 5/12/21 4:01 AM, Lin Feng wrote:
> 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.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-12 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 10:01 [PATCH] blkdev.h: remove unused codes blk_account_rq Lin Feng
2021-05-12 13:40 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).