]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - block/blk-mq-tag.h
blk-mq: blk_mq_tag_busy is no need to return a value
[thirdparty/linux.git] / block / blk-mq-tag.h
index 5668e28be0b7a6d2b1128072cb45ffeb665a9a31..91ff37e3b43dff3e7d8ac9276e2f53716d96a466 100644 (file)
@@ -47,15 +47,13 @@ enum {
        BLK_MQ_TAG_MAX          = BLK_MQ_NO_TAG - 1,
 };
 
-extern bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *);
+extern void __blk_mq_tag_busy(struct blk_mq_hw_ctx *);
 extern void __blk_mq_tag_idle(struct blk_mq_hw_ctx *);
 
-static inline bool blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx)
+static inline void blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx)
 {
-       if (!(hctx->flags & BLK_MQ_F_TAG_QUEUE_SHARED))
-               return false;
-
-       return __blk_mq_tag_busy(hctx);
+       if (hctx->flags & BLK_MQ_F_TAG_QUEUE_SHARED)
+               __blk_mq_tag_busy(hctx);
 }
 
 static inline void blk_mq_tag_idle(struct blk_mq_hw_ctx *hctx)