summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-11-23 19:53:05 +0100
committerJens Axboe <axboe@kernel.dk>2021-11-29 06:38:44 -0700
commit0281ed3cf44d2a7061ec3c1680e1f86e55ad57b9 (patch)
treea807951a3b5c1a339a5d91dd0dc47605c6c80392 /block/blk.h
parent35c90e6ec9608d8225b82ce609489b531cfd0a40 (diff)
block: move blk_get_flush_queue to blk-flush.c
blk_get_flush_queue is only used in blk-flush.c, so move it there. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211123185312.1432157-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/block/blk.h b/block/blk.h
index 5d4d08df772b..1346085d89ce 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -35,12 +35,6 @@ extern struct kmem_cache *blk_requestq_cachep;
extern struct kobj_type blk_queue_ktype;
extern struct ida blk_queue_ida;
-static inline struct blk_flush_queue *
-blk_get_flush_queue(struct request_queue *q, struct blk_mq_ctx *ctx)
-{
- return blk_mq_map_queue(q, REQ_OP_FLUSH, ctx)->fq;
-}
-
static inline void __blk_get_queue(struct request_queue *q)
{
kobject_get(&q->kobj);