Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61AFFC4332F for ; Mon, 7 Nov 2022 06:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiKGGRP (ORCPT ); Mon, 7 Nov 2022 01:17:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiKGGRO (ORCPT ); Mon, 7 Nov 2022 01:17:14 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBFD101CE for ; Sun, 6 Nov 2022 22:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=HLfO/iwe9Ln5f/q4JkcbiR4l389VnqS1ymF7ZDIO2do=; b=o/mKKkybpWaB+qoIyWZ1QIG7an 5lBYPxJelxF7qRLFQxP2vHi6rfRrITqPgFG4BuUkK1UkovsrL5EMZ6TfUi/UDkel4WxpQXbf4t41I P8Ey1wyOY7aUS1gmBo94okd8v21faMQYuToNoo9O8ZLS6dNORcO/6teo3wu6AoYv5bJf3RWktK1ZW TR0L/ySlYPOvu8juvRj2U76+V0+yqu2g9Hy+K/sWwPkzezgf5f55gcN9cCqE398KYLjyiPOygP52l ScJWV8w6mx7eZh3bhD/KwJ2v0KZqoa39IEdq+JmKt5I3vlEbETm3T6EgVP8l9OgDK0SVx+WGnNYpK OuGEFdng==; Received: from [2001:4bb8:191:2450:bd6a:c86c:b287:8b99] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1orvRV-00C6SB-0l; Mon, 07 Nov 2022 06:17:09 +0000 From: Christoph Hellwig To: axboe@kernel.dk Cc: linux-block@vger.kernel.org Subject: [PATCH] blk-mq: remove blk_mq_alloc_tag_set_tags Date: Mon, 7 Nov 2022 07:17:06 +0100 Message-Id: <20221107061706.1269999-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org This is a trivial wrapper with a single caller, so remove it. Signed-off-by: Christoph Hellwig --- block/blk-mq.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 7ff3415c8eadc..d26238f0de323 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -4403,12 +4403,6 @@ static int blk_mq_realloc_tag_set_tags(struct blk_mq_tag_set *set, return 0; } -static int blk_mq_alloc_tag_set_tags(struct blk_mq_tag_set *set, - int new_nr_hw_queues) -{ - return blk_mq_realloc_tag_set_tags(set, 0, new_nr_hw_queues); -} - /* * Alloc a tag set to be associated with one or more request queues. * May fail with EINVAL for various error conditions. May adjust the @@ -4471,7 +4465,7 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) goto out_free_srcu; } - ret = blk_mq_alloc_tag_set_tags(set, set->nr_hw_queues); + ret = blk_mq_realloc_tag_set_tags(set, 0, set->nr_hw_queues); if (ret) goto out_cleanup_srcu; -- 2.30.2