From patchwork Mon Jul 24 12:19:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1763030vqg; Mon, 24 Jul 2023 05:25:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBywfnrJ39N/HKfpT/pnbaxOx7xacPqvjsDdzXLcy+G+48CRMRDmMkFujFLz+G7i414JPp X-Received: by 2002:a05:6402:10cb:b0:51e:eaf:4fea with SMTP id p11-20020a05640210cb00b0051e0eaf4feamr7280119edu.35.1690201521752; Mon, 24 Jul 2023 05:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690201521; cv=none; d=google.com; s=arc-20160816; b=hnhVs+NjmlTaQswPMzuv3VcAN7hGwUpS3eDTeOTMaMmz9XbI/2sF8evUCElXkrJVyP i04KNzYsqEv2zHyffujgCoxXlpvcPBIu6ySKfowwoXiO6zri0wFZcwxoAFxuVGGQ2NAs qJZaoKXZWD2wziU/SM1VT4GI+iuSe6WFvJ29VRgakaeOaCdzwTXDMqz9l7d76VykxT/1 ZVhsWoNao8+Itj+GwYsTWwfbGezKp+4KEXgV7HwM4LbhngnFdEZuQ1F0P+7umPGej0J6 hhQvA+Z5TYtX5SfWvMdst7Rq/3se/VyoeEsWa7Py6783Ehe/N0ylJsdmWGv3pDHJk+20 vjRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yw8U5ZIL+QIvOqOgCvH62/0GH+vO3repWjYLc8iCS4s=; fh=2Z5U7+lRqpK8a+xTTKVo7Ik5Y3Bh1M1M0+1ovymClMU=; b=XYeSLhYxtjczdHGIKFz5HH97jjWhKTQu1OY1xGQw+fLCnFoxY6aSMfcHFPF6jswq9U AW8SfU0d7/jga+Ql87wJ1UHZkUUOSzsImU/DRXDaDWuYmpkTPqUdFFh3FpCmGR4JNAQd JvOZQ99xwrqhrHcZ331QOERyqhtY0ev3uwOPy21j/bYqzk4XxheFnxBtCWZM+VubQYi4 cmm03iHOCTB4rUX6e1X1ZUzHxUpQnwAASLHEDFpcmDLIx9nrt8v+cGA7cPYp969gyGK6 zD46El9+jePz0vNVqWTgyeAXro7n4bSmL/fYRczv79z2qO/6OSKv/pXDS/fGCZW7xwEw xxaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g70Q5KEw; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020aa7da4e000000b005223c340277si308325eds.426.2023.07.24.05.24.56; Mon, 24 Jul 2023 05:25:21 -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=@kernel.org header.s=k20201202 header.b=g70Q5KEw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230453AbjGXMUQ (ORCPT + 99 others); Mon, 24 Jul 2023 08:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230483AbjGXMUI (ORCPT ); Mon, 24 Jul 2023 08:20:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909F8E77; Mon, 24 Jul 2023 05:19:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 953EB61127; Mon, 24 Jul 2023 12:19:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BF8CC433D9; Mon, 24 Jul 2023 12:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690201181; bh=iwWAJYKBLb5j4fPL4Hu12qT1nZd5e76fZ0AMw+DpLq0=; h=From:To:Cc:Subject:Date:From; b=g70Q5KEwzUTcBwKA802MW7o/2isjEP+AZHYWLnF+HxqBWIAlMeMU8yXLIiGFJct7b 14Fpa6fpdty9oELGGx3eSTyOieayser7Z/6RqtpYCh8d+BLpNR9vOnHdZ8CVbRByc2 yneX4l8OQkrUOIFWyAo4WT6n+OytQxG5Wotd3Zkwblw8Fs38WZ/rMUHVk49Nt6/qfA USUbBUBA9XX8XXWgfiTVoAzAcr0M7LVszE99SWhZOylD7TOlRkn/34XI6UcpxvwVwb JU4aEnAxhW52HBUAG1qg0oulIzh54dIbzRJK8RWjZoC3Y+MTueR09DVYcWbQwdKoFq 3y9b8ARMYdekQ== From: Arnd Bergmann 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 Subject: [PATCH] btrfs: remove unused pages_processed variable Date: Mon, 24 Jul 2023 14:19:15 +0200 Message-Id: <20230724121934.1406807-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772304751174964495 X-GMAIL-MSGID: 1772304751174964495 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 Reviewed-by: Christoph Hellwig Reported-by: kernelci.org bot 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();