From patchwork Tue May 30 09:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 100709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2059297vqr; Tue, 30 May 2023 02:55:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sK73JowQGPtxNOTENFqudBWMt27O/4IqDk10tB/T2m389bTDJMRge9jeQCitQANUAkjE7 X-Received: by 2002:a17:902:ceca:b0:1b0:1608:d7eb with SMTP id d10-20020a170902ceca00b001b01608d7ebmr1917304plg.5.1685440541658; Tue, 30 May 2023 02:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685440541; cv=none; d=google.com; s=arc-20160816; b=vhQ250uZ5V/g77IwwGebGwS+WIF1uSBKaTqT9oOun7NVzQ0NbXRje/2fBum53/plh2 ptpDdzZ35hdOS6oFyN1TjSj9TiqWMgg9eznNGeh/KZ3w8Kd/xhi8YxuFhtsnRmS2xAgt jDOwxBYiIO9CWSPonMoNntKv3bGiOgjnRKOX5HRh5GPnnNH7tlYQNnHi4L0/WILCtTv6 NOrK4AOCmdSDseoOUT2bTvH6kPlaD7pzKiwsiM07TZMQilRBWQh8TbphNwpCvfgnQJWk q1xXs9PhZrgVg4vl5qpIvq6MvudGYkY2nxG5/YHawlO4UaJd2nv2KGLxGJzYjX4jMUlY j3rg== 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; bh=2mLpnpqFOeXaueSnaGYz7nX5pIRSccaxaIp5Lg7jz2U=; b=Mu8puC91P8vyJQrDNpKnU/bXNURwrz7caj9myRY1f4ZlkN1eLNxnzsF5IopEYGNqiw 8T7MS9E7/z/p94DXdzrL5njVyb+TmottWmT1dsLJI8lFOSk0y5aTFP3ObWeb1cTEPQ7g 0O333lRzqTNbgoNDdRuqmnvuwfFj0D13zoowG3SF7iShQEBnNvdNY/KvwgkBolCfaSs2 2FJxr6+ciF7ZvVgBVyAJv1mNJ0TC71C/d5Pm/eR5U9pKxp4v2d5+ZOOsmAL5R5b9j2vx irfRLlFqUge484YjRUTMijTzkcwoUnHY8BxoxIvWgRH66Pooeu2VvjRsk0WEvaSNzz1T o++w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a170903244100b001ac68acb1e8si11775447pls.518.2023.05.30.02.55.27; Tue, 30 May 2023 02:55:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbjE3JfG (ORCPT + 99 others); Tue, 30 May 2023 05:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjE3Jev (ORCPT ); Tue, 30 May 2023 05:34:51 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9FC010A; Tue, 30 May 2023 02:34:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vjt9QYb_1685439286; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vjt9QYb_1685439286) by smtp.aliyun-inc.com; Tue, 30 May 2023 17:34:47 +0800 From: Yang Li To: clm@fb.com Cc: josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] btrfs: remove unused definition Date: Tue, 30 May 2023 17:34:45 +0800 Message-Id: <20230530093445.61526-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767312501086683226?= X-GMAIL-MSGID: =?utf-8?q?1767312501086683226?= The code using variable pages_processed has been removed, and function folio_nr_pages has not changed the memory of pointer folio, so both should be removed. silence the warning: fs/btrfs/extent_io.c:230:16: warning: variable 'pages_processed' set but not used Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5340 Fixes: 8294b1869688 ("btrfs: split page locking out of __process_pages_contig") Signed-off-by: Yang Li --- 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 89e093ae1c33..6919409c1183 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -227,7 +227,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; @@ -242,7 +241,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();