summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-21 08:34:32 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-21 19:03:17 +0200
commit828b5f017d9d5d0491cd2e71d48f4f2139078e2c (patch)
treebdf754cd8317998777bcb592b0b983128a61cbfd /block/blk.h
parentblock: call blk_mq_exit_queue from disk_release for never added disks (diff)
downloadlinux-828b5f017d9d5d0491cd2e71d48f4f2139078e2c.tar.xz
linux-828b5f017d9d5d0491cd2e71d48f4f2139078e2c.zip
block: remove __blk_get_queue
__blk_get_queue is only called by blk_get_queue, so merge the two. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20220721063432.1714609-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk.h b/block/blk.h
index c4b084bfe87c..1d83b1d41cd1 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -31,11 +31,6 @@ extern struct kmem_cache *blk_requestq_srcu_cachep;
extern struct kobj_type blk_queue_ktype;
extern struct ida blk_queue_ida;
-static inline void __blk_get_queue(struct request_queue *q)
-{
- kobject_get(&q->kobj);
-}
-
bool is_flush_rq(struct request *req);
struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,