All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Subject: [PATCH 1/8] block: move blk_get_flush_queue to blk-flush.c
Date: Tue, 23 Nov 2021 19:53:05 +0100	[thread overview]
Message-ID: <20211123185312.1432157-2-hch@lst.de> (raw)
In-Reply-To: <20211123185312.1432157-1-hch@lst.de>

blk_get_flush_queue is only used in blk-flush.c, so move it there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-flush.c | 6 ++++++
 block/blk.h       | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/block/blk-flush.c b/block/blk-flush.c
index 1fce6d16e6d3a..86ee50455e414 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -95,6 +95,12 @@ enum {
 static void blk_kick_flush(struct request_queue *q,
 			   struct blk_flush_queue *fq, unsigned int flags);
 
+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 unsigned int blk_flush_policy(unsigned long fflags, struct request *rq)
 {
 	unsigned int policy = 0;
diff --git a/block/blk.h b/block/blk.h
index 5d4d08df772b9..1346085d89cee 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);
-- 
2.30.2


  reply	other threads:[~2021-11-23 18:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 18:53 decruft blk.h Christoph Hellwig
2021-11-23 18:53 ` Christoph Hellwig [this message]
2021-11-23 18:53 ` [PATCH 2/8] block: remove elevator_exit Christoph Hellwig
2021-11-23 18:53 ` [PATCH 3/8] block: remove the e argument to elevator_exit Christoph Hellwig
2021-11-23 18:53 ` [PATCH 4/8] block: don't include blk-mq-sched.h in blk.h Christoph Hellwig
2021-11-23 18:53 ` [PATCH 5/8] block: don't include blk-mq.h " Christoph Hellwig
2021-11-23 18:53 ` [PATCH 6/8] block: don't include <linux/blk-mq.h> " Christoph Hellwig
2021-11-23 18:53 ` [PATCH 7/8] block: don't include <linux/idr.h> " Christoph Hellwig
2021-11-23 18:53 ` [PATCH 8/8] block: don't include <linux/part_stat.h> " Christoph Hellwig
2021-11-24 15:33 ` decruft blk.h Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211123185312.1432157-2-hch@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.