Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7078820ioo; Thu, 2 Jun 2022 22:11:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIIHrrNmYhfI7467xMhMasO29oAULiwhLa2Ga2N7L8t5tyAMwvrayzyCSu2H516xXIKh8Q X-Received: by 2002:a17:903:244f:b0:162:4daf:f8bb with SMTP id l15-20020a170903244f00b001624daff8bbmr8684194pls.20.1654233090645; Thu, 02 Jun 2022 22:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654233090; cv=none; d=google.com; s=arc-20160816; b=BjRkjgOpT1zj454KB0g8FdOtt71Kb6PIkalJy7XVJ/oBq69+fLVTbILDDLs98QsX43 SX5Q7woC3EnwRhA0+ZzDNZirlRUuRs2RokcIL1p10YPdgsvoqCJVL4AbM0ajbjKfHmBi Wts75iogl31+xUTreJS7IyhaJuUqEhQlK7wvvrnAnCUMyQ5fYRZFK0CP404rMoX7N/Pp 2AtSLI8IxuobjIZqsjGnCGHQ94DGyB+S55RnQNh7gzTFPiyHInJ2lsdrLMyuaPHjveOb Gdfa5tXEMTwvJ1Nrvt/COAJTk/YeEIefiGlovjTDv6OYDQqgVLEYd9e4DsSVeuISeUgZ aVNA== 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=96gVyAPchfhwwZw5Cb/qi6tBAvjJY8REpnEBoiyArWE=; b=izpOUJber3lAloEn+39XrY8FOvnZGN/ysByQts2ddJ6ocoCDBEoVA4RTSSRwPMEDmT CGjiM8ygJ3uLa4WVRPvC6kszN3n0yIeb+RitFw9T0YklCKZnhdtL/uWJuYcUIAc12sR3 tlnDFHHwZOWN72xxqAUCAOorT9lnz2l7V+qZjcvvA3zXvuOXGzpNPnT+QESX7LVpzunL jCU3n+a+GvsLH4fiEevfNOvlFS3K1vUH9tncB7/vBKDlXUyyekIrxJiX7So2drY6+rUD j6qpfRqBOlD3WrGd7x8kl+3FefvJZVa33mzxTSyKeoGFQeMfZLob/HUOj90WrHzllMDe yXLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=mw4vLU8g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 137-20020a62168f000000b004fa3a8dffd1si7549914pfw.136.2022.06.02.22.11.16; Thu, 02 Jun 2022 22:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=mw4vLU8g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237999AbiFBSSs (ORCPT + 99 others); Thu, 2 Jun 2022 14:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237921AbiFBSSY (ORCPT ); Thu, 2 Jun 2022 14:18:24 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121C54D9FF; Thu, 2 Jun 2022 11:18:23 -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=96gVyAPchfhwwZw5Cb/qi6tBAvjJY8REpnEBoiyArWE=; b=mw4vLU8g4U7xEwsr4S402L+7dM dRUXrSpOtPqTLZEUzWnICbENArFHYsbgfUxRwluxq7skykyk9I/vQ1GcIbFeZPJlK6VWGfMHEsB6v wc6Il+k5eQNMYzTL6rolCHSleV8RKss9baGGnauY/gzrPVtLd3SrMV4tIuQe7qpT6w8HT0JKR6ysL HKsWSFHZNU2qwU0QCur811QseGxNVj9lerJwUOGpt9MfNfdZWdNqcJLvUACpCdrsHsviTs9yevSd/ jqm588gA6gC4lMvlfRXYwFYDlzyrQE/sC54PpkkL3FkNdPxXFax7bpLst3e34ryIYeVAlujhsZin2 yZQd0KOA==; 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 1nwpOm-00EPmX-Pz; Thu, 02 Jun 2022 12:18:22 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1nwpOl-000DDG-LO; Thu, 02 Jun 2022 12:18:19 -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: Thu, 2 Jun 2022 12:18:08 -0600 Message-Id: <20220602181818.50729-3-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220602181818.50729-1-logang@deltatee.com> References: <20220602181818.50729-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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH v3 02/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 973e2e06f19c..4f5bdb4cad2b 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