projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ea96ee
)
blkdev.h: remove unused codes blk_account_rq
author
Lin Feng
<linf@wangsu.com>
Wed, 12 May 2021 10:01:24 +0000
(18:01 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 12 May 2021 13:40:32 +0000
(07:40 -0600)
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>
Link:
https://lore.kernel.org/r/20210512100124.173769-1-linf@wangsu.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h
patch
|
blob
|
history
diff --git
a/include/linux/blkdev.h
b/include/linux/blkdev.h
index
b91ba62
..
26c3e36
100644
(file)
--- a/
include/linux/blkdev.h
+++ b/
include/linux/blkdev.h
@@
-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)