Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2688517iof; Wed, 8 Jun 2022 09:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2uhI3Yngy3OZpGeJfhxQFRrB4EEB5lht7ubQt1vHzz5XiAcpDAwk1D6YZMseuSa7pEQf+ X-Received: by 2002:a17:902:e5d2:b0:164:1958:c858 with SMTP id u18-20020a170902e5d200b001641958c858mr35450981plf.62.1654707503210; Wed, 08 Jun 2022 09:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654707503; cv=none; d=google.com; s=arc-20160816; b=g+kz+GaX1BlRmo30URqjbcLerGrVL/m+1U5jqy/xOEvO0eadwL5RFccwBxtcLkrNtT Q4Q/PJRdsT1ziga46gulW2Y7Ut8ora0e03wUZMVtvwFDbKs/vpmbThWifFy4wPqKx/sW qVrBM9vIeKcyVGikE0e+v+emP3mRKqlDx6e3crJKtHo8mJp9yqWE1Sn7pDfuYHlJyuLM IT5a8K5LFGexw+s8jyJuqsg3gZM/l2/bsRKiEgE6A7Vo7MYUOZE6qqZ+x7ZAdn/Abx4m c8Nc+gZF6g45+/dJToXm+y7NyJ6owuj4m+CnkoS7xALrfyMTbqfqzlyz3NSN7ejQBkwW 3yJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=6Vkeh6rAlHW/X/6dpPN/qr4LppXBSj/dDsDAYd6JEKk=; b=CzKj8xTBfqjBFKcfw/2dc/m56SB0/hXFimTomvm6Qg5CMRTB5O9VSmhE755+8Q11Zw iyYtfIxNnCHqbvlWXX/W6RAMfs6dD4kuoZGLMvxAsNDHTkfUdFibA4oBzg2MRfPd+sTH BWk0oLjCFv2H0mJ4D9EK0tph/zdFTc+g7oQgDK3I/hQjTRq/rpjx5uIEhh0XkLcF6CmB gapILsPfOTcuqCE+LyimmovrzWaxBs7lZhhNrhCjqNDbdJDRzk9tUtS61wBP/W1y57UE U1H9+VxqrIBnIGaEBPCNDjc7ElYnp3QFqE1ZSh9AzvODaQBiAm28zt3fC6XoGsHx5dq1 QHAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=jYNt0eAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n4-20020a170903404400b00161f1941a63si23986697pla.357.2022.06.08.09.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=jYNt0eAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D90A243197; Wed, 8 Jun 2022 09:29:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245569AbiFHQ2b (ORCPT + 99 others); Wed, 8 Jun 2022 12:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245143AbiFHQ2H (ORCPT ); Wed, 8 Jun 2022 12:28:07 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E201FD9C9; Wed, 8 Jun 2022 09:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:MIME-Version:References:In-Reply-To: Message-Id:Date:Cc:To:From:content-disposition; bh=6Vkeh6rAlHW/X/6dpPN/qr4LppXBSj/dDsDAYd6JEKk=; b=jYNt0eAlkIQO/1/rgoGT804axE jlCS62BGwks0k2Vj6fYsoj/DNRh7eRcxtPSHGHDoGTG+2tyLy7yPwff0lZz4bX6m3EjF7N7wB8kDi BWhH5pOREGEaxbavsbD0Em9glWqZ8HRq6+g94ziDYLrqK2SIn7mRUq9tsY/G/5Zq3uPHLPwnJOx+d L0P7j2pP3Adx1fbypHVwga6M4g2u4O5oq6YnlJ0czsT/4Cf5Vs/w4v+l66EC2DNTJXZGXv/BpzqIe /yAVolXNTGkOu551/tiO2/ZxzWneF5txlx+zYavXXnaQc2mNN4T9yyP35rDc3VcFaKijXt+POF5US CHKBZiRQ==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nyyXK-0026n8-HO; Wed, 08 Jun 2022 10:28:03 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1nyyXG-000bdM-F6; Wed, 08 Jun 2022 10:27:58 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Donald Buczek , Guoqing Jiang , Xiao Ni , Stephen Bates , Martin Oliveira , David Sloan , Logan Gunthorpe , Christoph Hellwig Date: Wed, 8 Jun 2022 10:27:48 -0600 Message-Id: <20220608162756.144600-4-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220608162756.144600-1-logang@deltatee.com> References: <20220608162756.144600-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, hch@infradead.org, buczek@molgen.mpg.de, guoqing.jiang@linux.dev, xni@redhat.com, sbates@raithlin.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com, logang@deltatee.com, hch@lst.de X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Subject: [PATCH v4 03/11] md/raid5-ppl: Drop unused argument from ppl_handle_flush_request() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ppl_handle_flush_request() takes an struct r5log argument but doesn't use it. It has no buisiness taking this argument as it is only used by raid5-cache and has no way to derference it anyway. Remove the argument. No functional changes intended. Signed-off-by: Logan Gunthorpe Reviewed-by: Christoph Hellwig --- drivers/md/raid5-log.h | 4 ++-- drivers/md/raid5-ppl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/md/raid5-log.h b/drivers/md/raid5-log.h index 270ced4f770f..c8332502669e 100644 --- a/drivers/md/raid5-log.h +++ b/drivers/md/raid5-log.h @@ -41,7 +41,7 @@ void ppl_write_stripe_run(struct r5conf *conf); void ppl_stripe_write_finished(struct stripe_head *sh); int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); void ppl_quiesce(struct r5conf *conf, int quiesce); -int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio); +int ppl_handle_flush_request(struct bio *bio); extern struct md_sysfs_entry ppl_write_hint; static inline bool raid5_has_log(struct r5conf *conf) @@ -108,7 +108,7 @@ static inline int log_handle_flush_request(struct r5conf *conf, struct bio *bio) if (conf->log) ret = r5l_handle_flush_request(conf->log, bio); else if (raid5_has_ppl(conf)) - ret = ppl_handle_flush_request(conf->log, bio); + ret = ppl_handle_flush_request(bio); return ret; } diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index 0a2e4806b1ec..db49edec362a 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -679,7 +679,7 @@ void ppl_quiesce(struct r5conf *conf, int quiesce) } } -int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio) +int ppl_handle_flush_request(struct bio *bio) { if (bio->bi_iter.bi_size == 0) { bio_endio(bio); -- 2.30.2