]> www.infradead.org Git - users/hch/block.git/commitdiff
block: mark put_io_context_active static
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Nov 2021 06:37:13 +0000 (07:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 26 Nov 2021 06:40:12 +0000 (07:40 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-ioc.c
include/linux/iocontext.h

index 3b31cfad4b75bfe08c0a555d4cc0bcf98a77154d..f3ff495756cb4592cfb7c96c4c85e7490c231171 100644 (file)
@@ -175,7 +175,7 @@ void put_io_context(struct io_context *ioc)
  * Undo get_io_context_active().  If active reference reaches zero after
  * put, @ioc can never issue further IOs and ioscheds are notified.
  */
-void put_io_context_active(struct io_context *ioc)
+static void put_io_context_active(struct io_context *ioc)
 {
        struct io_cq *icq;
 
index bcd47d104d8e67e054a8b630ad7442d0d04577c2..3ba45953d522823effbea36697e21ac4eaac3e21 100644 (file)
@@ -132,7 +132,6 @@ static inline void get_io_context_active(struct io_context *ioc)
 struct task_struct;
 #ifdef CONFIG_BLOCK
 void put_io_context(struct io_context *ioc);
-void put_io_context_active(struct io_context *ioc);
 void exit_io_context(struct task_struct *task);
 struct io_context *get_task_io_context(struct task_struct *task,
                                       gfp_t gfp_flags, int node);