Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2509461rwo; Thu, 3 Aug 2023 10:20:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfzeARyPgMA/t+RB1YFzFwYSEO+7mw8C+cy+Bkp3g6+e5R0Gh/EWVnPB43V+2zHf8l7crm X-Received: by 2002:a05:651c:1032:b0:2b2:1f2f:705f with SMTP id w18-20020a05651c103200b002b21f2f705fmr7555285ljm.4.1691083238473; Thu, 03 Aug 2023 10:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691083238; cv=none; d=google.com; s=arc-20160816; b=LHHM+YjbV2HDgUxOfpeyyoPd+zgTqrybiMVoPiHvSM7Q9HBpgPmUOeM1wSOBz63PmP dZ2Qs3xOI9Z8vUVoY7RZ6qlq1+MMk3h2dnaGvhiyKIsokZhEErFIKl+u5p/l7KQUxjx8 lIjZdP7QU4jOx23P+7gQ09yCQdFeyAg7G94LdCCyJlA+4cdHo7PrYhLRWOfswy89Vg6+ HYhoWGsO/Wpy9FJZlD6iBSF4tpQqtY+dRVF7GEs5d8Ngz5AFk0PzH4Fjt/brTRJdwf+0 Wcv3eYLduVkjuTsolEBxD0rfS4qKtaptzNReDAOAOBA0OqbFbZIq0ejoqLCKxeT9Cf6x 0ilA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EFCXH3mOUSq8MqtZtOkQkRghp8S2GIqMkOlbsQ4LQ88=; fh=qMSzp0cjZFnevHk/qg7vAtWZxHRi/kvBeBPhCVADkw8=; b=O7m/Ofohx/0Se5Ym4FYJ8luYL//k98p57khG9uS3Jk1xwSWYmI3MSPWZ5DICidS9Y7 Jp74poFPv9JT1t4vZIyORmFDg3GdYpp4UFHd8i2d8AjiN9jVJEOGWcSv4qWbIC8kblT4 tp6aHvfMYgaEAQzu0Kyag8kMC/qw6OSEzXeH+hoHify8EKHAx2bR7rw6T0srbRads+e6 GdpLK8wOh3bVXY5rQyhxaHopUy61nFhgddw9ZGWHVMBNsczjnTsIo09bSq91MSAixTX2 fS+EH0DWOC5gtZIgbuYnd2zK10Z+5W8V1BOikTChdwhmiFX++X5jQQGsDMyMAO4Q+fqD Ncvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=wfeHYOHq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a17090635c700b00991f1e4b041si109606ejb.737.2023.08.03.10.20.12; Thu, 03 Aug 2023 10:20:38 -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=@google.com header.s=20221208 header.b=wfeHYOHq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234547AbjHCQpm (ORCPT + 99 others); Thu, 3 Aug 2023 12:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjHCQpk (ORCPT ); Thu, 3 Aug 2023 12:45:40 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C737BE77 for ; Thu, 3 Aug 2023 09:45:39 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-63cf8754d95so6387096d6.1 for ; Thu, 03 Aug 2023 09:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691081138; x=1691685938; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EFCXH3mOUSq8MqtZtOkQkRghp8S2GIqMkOlbsQ4LQ88=; b=wfeHYOHqmHJelbVa+gQR2GNMF3c7du1yNFbQnLx+lyJh7yqP9ritrv9FPFxzAeYXPg 8B7AtnMU3r1Dn4wIeAoo198vyCUdPH4ORPUiSoKuyZGSp9CAp3s+Lu1bwi7+5yUtVjng QrmJfckWzDEu25adx7RQealFqD+elITU5E0XQ1RsVvD7Q7pM0N1A1WgXqbPnHpUmiNhP Sx9xRu7EAwfgWardS1x8jk5u3pOUqJLXa8lj2Ftajf6hRM/Jl1mUv0StYqeIce51dYXc W1bhpBh1H20IOuYNJclN1E9blwfW9ssmMF5Y+nyJSdig9lbTYtL7P1uJ1dEbvMR0MztN TVmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691081138; x=1691685938; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EFCXH3mOUSq8MqtZtOkQkRghp8S2GIqMkOlbsQ4LQ88=; b=OnujVtJAwZQt2nGqUZEZom8l079kMc6Fsylame4smY0sLvXyjFjmqvrh0K2y2NnJaF jQOjJVExiocbIihmpgmJCzw3q5WYTOd+jgWmWC0FWDS4DC3+fRPDlzZSl9mU60070J+/ sS65mTzCAGGe/vza/eX6/NqyPedH9ASTq6gc+5SbYDVxa2p0v4TLd644sWvRPcZ8hwf/ /kMmFBuZb7uQDttkVmvkeT+ufCFQUPu+zECXtNvbePZ6ehXuCqqeBtXlephrFlxItPfg ox88CxQaocFdf/LaS0dZf4A3S3+zx2o+dwHReBzhJE3w4gCYuU4KFY0z9f8yiwboQFW5 Ktuw== X-Gm-Message-State: ABy/qLZqZXcr8BONj2AOU4esq/dyYtB0Oqy1ZNZON5aD+qRI8AoMhuLS KPn/TiEL9UoKgPdfXEj8gM15gzKKOW5C8KMgnzR80Q== X-Received: by 2002:ad4:4149:0:b0:63c:fbe9:6837 with SMTP id z9-20020ad44149000000b0063cfbe96837mr15576127qvp.11.1691081138436; Thu, 03 Aug 2023 09:45:38 -0700 (PDT) MIME-Version: 1.0 References: <20230724121934.1406807-1-arnd@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Thu, 3 Aug 2023 09:45:27 -0700 Message-ID: Subject: Re: [PATCH] btrfs: remove unused pages_processed variable To: Chris Mason , Josef Bacik , David Sterba Cc: Arnd Bergmann , kernel test robot , Johannes Thumshirn , Qu Wenruo , Anand Jain , Filipe Manana , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Arnd Bergmann , linux@leemhuis.info Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 25, 2023 at 2:49=E2=80=AFPM Nick Desaulniers wrote: > > On Mon, Jul 24, 2023 at 02:19:15PM +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The only user of pages_processed was removed, so it's now a local write= -only > > variable that can be eliminated as well: > > > > fs/btrfs/extent_io.c:214:16: error: variable 'pages_processed' set but = not used [-Werror,-Wunused-but-set-variable] > > > > Fixes: 9480af8687200 ("btrfs: split page locking out of __process_pages= _contig") > > Reported-by: kernel test robot > > Closes: https://lore.kernel.org/oe-kbuild-all/202307241541.8w52nEnt-lkp= @intel.com/ > > Signed-off-by: Arnd Bergmann > > Thanks for the patch! > Reported-by: kernelci.org bot > Link: https://lore.kernel.org/llvm/64c00cd4.630a0220.6ad79.0eac@mx.google= .com/ > Reviewed-by: Nick Desaulniers Friendly ping the btrfs maintainers to please pick this up. Our CI for linux-next has been red over this for longer than I like, and it's giving me nausea, heartburn, indigestion, upset stomach, and...well... https://youtu.be/d8InOVEsMlU > > > --- > > fs/btrfs/extent_io.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c > > index c0440a0988c9a..121edea2cfe85 100644 > > --- a/fs/btrfs/extent_io.c > > +++ b/fs/btrfs/extent_io.c > > @@ -211,7 +211,6 @@ static void __process_pages_contig(struct address_s= pace *mapping, > > pgoff_t start_index =3D start >> PAGE_SHIFT; > > pgoff_t end_index =3D end >> PAGE_SHIFT; > > pgoff_t index =3D start_index; > > - unsigned long pages_processed =3D 0; > > struct folio_batch fbatch; > > int i; > > > > @@ -226,7 +225,6 @@ static void __process_pages_contig(struct address_s= pace *mapping, > > > > process_one_page(fs_info, &folio->page, locked_pa= ge, > > page_ops, start, end); > > - pages_processed +=3D folio_nr_pages(folio); > > } > > folio_batch_release(&fbatch); > > cond_resched(); > > -- > > 2.39.2 > > --=20 Thanks, ~Nick Desaulniers