Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp246724rwb; Tue, 25 Jul 2023 15:17:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHY3jZqZ/fvhld2OHr3RQlfEonX3DuauXp2Jw33DeXopo37GOHFtrelKhvTf6dGRznrQsMB X-Received: by 2002:a17:907:6087:b0:993:f2b4:13c9 with SMTP id ht7-20020a170907608700b00993f2b413c9mr114336ejc.21.1690323462755; Tue, 25 Jul 2023 15:17:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690323462; cv=none; d=google.com; s=arc-20160816; b=Npwk7+m0df6vWDl/KNjCTjm/beH9atfMCEedUtcwWvNVhSpwDq3DQIHW6qqtOz+i/D 619k9dM+ErSEB4TXjLOQ2kA2vi5cMk5NwQ6OnDwiBl/yf9F62X4/ZC6h3zMoO/YguZNs maPnULc6m7erIPDJIsaMiN6f47HZjnnp7VBT6DxBiDdCIsEkQ7aTfEcYj6wpEwv93vNW AVzcqRXQzTso/I83+fLnqvfYzrXrNUtDMvuoU+SZwddCB6kEcBV2SXTdR9YCkoRbEbVR D2DYAwTqNfuf1oetf77a/nF4VqYOvL30LgfbNFHdcoP7kc9QMx253NK8WhzRuR7FaOJS azFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O68PvqqV9gRBuxDZl0WOVIRv5G/X4NrMEdbh/768tzA=; fh=J5/uGxdKFA4hEAKQdqLbDiJe8kPAnsKlyymVgv62k8k=; b=GyUejCieSxenIu46mDAZHEpvMBnSj6YG4GEy+08982mmPAAJ1MrwiDw0OnTcZ5UQDY 2YGNRPK2bgksGR4m+P+C64Q9hrDpTH2enW9DVe+NhSDmCB7v4ff04Wbyc/oKgye8ls5U /f+oN7KFnE7dYNRD/e4Cc/egxvUFvLMuFGJ9Q7OwH2vcxjZroTbJIM0/OFTeUAZOUm3j xwtZh/UeECVXb+AkdN7gVf2dWMQZu+J5gzQB2I2SMyZekJ2eoaJLMvmwf6901A6wtG50 iUhJvf7aQrc3e9M7U7hv9xB6LHtp9QV9fIknTa4KHE5DkjP1MEYLDvLhLtwi185Apb2c 4MEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=WpyPx27W; 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 i11-20020a17090639cb00b00988f21df36esi8987503eje.594.2023.07.25.15.17.16; Tue, 25 Jul 2023 15:17:42 -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=WpyPx27W; 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 S230520AbjGYVtW (ORCPT + 99 others); Tue, 25 Jul 2023 17:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjGYVtU (ORCPT ); Tue, 25 Jul 2023 17:49:20 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D322129 for ; Tue, 25 Jul 2023 14:49:19 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-666ecf9a0ceso3693191b3a.2 for ; Tue, 25 Jul 2023 14:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690321758; x=1690926558; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=O68PvqqV9gRBuxDZl0WOVIRv5G/X4NrMEdbh/768tzA=; b=WpyPx27WCr/WIbEfCSxs1Y8b4Gg4/pW0aKUoGH4ssc0OCZecu8jXj20aNS6wF3tblu XmuW8qKYNhzHdxjrATt9wvXBBGzM0YrZmLmiyTq3oAuvOetPDU+3f+ZlV4hRm2orFEtE 6Y/7E3DwS9WBOPNuGwOQd0SCBuaLRzFC2vdQrxsADf3CZJ6+CcxSrtiN70KeKLvMagMy eXf4wX/2fWzomv+wLjuS+ruBfpILqSMX2zATgJY5tevg8w5F0h1bTnw7NcR+ZInS1hoS 1h84VW506r3LzA6A4J8fgl+br0tUuPcuVEG5KoXcUAWT9U8qQH+ESRL+xre6zQGoA/R0 tqLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690321758; x=1690926558; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=O68PvqqV9gRBuxDZl0WOVIRv5G/X4NrMEdbh/768tzA=; b=aPBMZa40eL7GnKvZs++nV/FWovgli3UMnHDDoqvNNnqMy9Tiu53fUTOfLIu8+g6IeT SOs6YvPvAwZeUlbnheYGnCHy8MbKnWZEBsWJ1LK9tlzkmeska1HdxQhIVEybra/Cq2N1 hSEKO4D4js596O6k2FgXyUGt1KdnlJEob5HSoiEN9rOVN7xl9u3vonhtvsgrZuw4krKz R0BPRGXP+8nGZKOUdw5O+oi8bORYxwnLdpNaHVoBpEKqR9a1DKQSj8NSxbHPYu/0bBik OuVSByn3WmNV83VyFQ6XI89uhWtQJabtYxG2OE3evw7WmmkjXXr+yRIjU65LsVxfTNiw +BRQ== X-Gm-Message-State: ABy/qLaqgazo15YLEtRhgsJL289+IIMgqtaz0J7ql/19tFkElcXSH9wo 41wsYHbVZ4Cj/3hrba7+ZfvyOg== X-Received: by 2002:a05:6a21:790a:b0:137:6958:d517 with SMTP id bg10-20020a056a21790a00b001376958d517mr263272pzc.24.1690321758506; Tue, 25 Jul 2023 14:49:18 -0700 (PDT) Received: from google.com ([2620:15c:2d1:203:a7a4:bf67:c9d5:c1b7]) by smtp.gmail.com with ESMTPSA id i2-20020a63a842000000b0055fead55e81sm11269105pgp.57.2023.07.25.14.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 14:49:18 -0700 (PDT) Date: Tue, 25 Jul 2023 14:49:13 -0700 From: Nick Desaulniers To: Arnd Bergmann Cc: Chris Mason , Josef Bacik , David Sterba , 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 Subject: Re: [PATCH] btrfs: remove unused pages_processed variable Message-ID: References: <20230724121934.1406807-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724121934.1406807-1-arnd@kernel.org> 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,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham 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 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 > --- > 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_space *mapping, > pgoff_t start_index = start >> PAGE_SHIFT; > pgoff_t end_index = end >> PAGE_SHIFT; > pgoff_t index = start_index; > - unsigned long pages_processed = 0; > struct folio_batch fbatch; > int i; > > @@ -226,7 +225,6 @@ static void __process_pages_contig(struct address_space *mapping, > > process_one_page(fs_info, &folio->page, locked_page, > page_ops, start, end); > - pages_processed += folio_nr_pages(folio); > } > folio_batch_release(&fbatch); > cond_resched(); > -- > 2.39.2 >