Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3122862pxu; Tue, 8 Dec 2020 04:18:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfd4SHzA2qRVbo/O/ajKZnIoKOfIMM5YzyHJjiR06Nd0IoYlOm76+sq3ferJkm07WLNAe8 X-Received: by 2002:a17:906:1498:: with SMTP id x24mr22307086ejc.170.1607429894580; Tue, 08 Dec 2020 04:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607429894; cv=none; d=google.com; s=arc-20160816; b=c5dNRS17WlOaHuEivqh9kbDrYtm2GlBvHzOS8t0lCPKY0U6MwkisnN4JY/GOdBsxF5 qjqkNVgbXsybuDXcWe2+FAMl4W5Qot07dLjS2nzfwlQuAwnXCT9Lt5CpMIujh87zLhi+ p20DL1ev22NzlU6VR81T3QzTf21l0p5+o1RqKFxOmB1vlTln9v4kKyCjrZ+Gvbbf9LLf xj2VcVWY87EoiA0w+PTUs2nbismbLrl/AXq4eglu7P7lvo05rOLh+b4kWRxElQtWcZmy 7Bt3rHcxlWoeKBQOSbdG7q7Ys2h0uhrkUS2C9YF1LzPamrT7PqiPqkN//srGIgGFfB3t o0rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=4yXeHGrXkL46QFPcvNRJ//FlhZIotJbtqY2A9phzKG8=; b=M99gq5uQyAo27zSWshW5BY/7xjEKvD4IdIFkFqlZoMRaCb8og/7NNz4sCHyVoH/yXn Z5kxgSMa38FYey93/sKCj2M8TYXzqrTZdPPTbj4Rgup7VqKS2hS5MJkJqA1hDJmKjo3L Yx9WBaKsv2z8xv50OW1zdcNLxlhDfsBXfuAal29uJXT92ga72sERLwSXGHLCOj967K8d w9Ay9tazcNMykqL3ky1vGA9DkJmhGtaCl16p83rZoWoNOqze2uuqsdY6hXbQAKArRK7D egM2bkLNWrpybiuHmBq2Dp8xflE0DlEMxGNNBAhk85sYr0pqShrxqSiZ9dzV2pq+TWvE U/4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck15si9766005edb.37.2020.12.08.04.17.50; Tue, 08 Dec 2020 04:18:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728771AbgLHJhd (ORCPT + 99 others); Tue, 8 Dec 2020 04:37:33 -0500 Received: from smtp.h3c.com ([60.191.123.56]:58643 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbgLHJhd (ORCPT ); Tue, 8 Dec 2020 04:37:33 -0500 Received: from h3cspam01-ex.h3c.com (localhost [127.0.0.2] (may be forged)) by h3cspam01-ex.h3c.com with ESMTP id 0B87owop066652; Tue, 8 Dec 2020 15:50:58 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam01-ex.h3c.com with ESMTP id 0B87oVLF065626; Tue, 8 Dec 2020 15:50:31 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from localhost.localdomain (10.99.212.201) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 8 Dec 2020 15:50:34 +0800 From: Xianting Tian To: CC: , , Xianting Tian Subject: [PATCH] blk-mq-tag: make blk_mq_tag_busy() return void Date: Tue, 8 Dec 2020 15:40:02 +0800 Message-ID: <20201208074002.31539-1-tian.xianting@h3c.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.99.212.201] X-ClientProxiedBy: BJSMTP01-EX.srv.huawei-3com.com (10.63.20.132) To DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) X-DNSRBL: X-MAIL: h3cspam01-ex.h3c.com 0B87oVLF065626 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As no one cares about the return value of blk_mq_tag_busy() and __blk_mq_tag_busy(), so make them return void. Signed-off-by: Xianting Tian --- block/blk-mq-tag.c | 4 ++-- block/blk-mq-tag.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index 9c92053e7..21ff7d156 100644 --- a/block/blk-mq-tag.c +++ b/block/blk-mq-tag.c @@ -21,7 +21,7 @@ * to get tag when first time, the other shared-tag users could reserve * budget for it. */ -bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) +void __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) { if (blk_mq_is_sbitmap_shared(hctx->flags)) { struct request_queue *q = hctx->queue; @@ -36,7 +36,7 @@ bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) atomic_inc(&hctx->tags->active_queues); } - return true; + return; } /* diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h index 7d3e6b333..dd80e5a85 100644 --- a/block/blk-mq-tag.h +++ b/block/blk-mq-tag.h @@ -60,15 +60,15 @@ 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; - return __blk_mq_tag_busy(hctx); + __blk_mq_tag_busy(hctx); } static inline void blk_mq_tag_idle(struct blk_mq_hw_ctx *hctx) -- 2.17.1