Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4264996rwd; Tue, 30 May 2023 02:57:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6U+0SkxJvVYoTl3a34qAeTN1H5CYRoaX+yUAgkNhSs/XKBc00wZwylqJV3rScTyg7vYgcy X-Received: by 2002:a17:90a:4590:b0:247:26da:5de2 with SMTP id v16-20020a17090a459000b0024726da5de2mr1893329pjg.20.1685440657100; Tue, 30 May 2023 02:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685440657; cv=none; d=google.com; s=arc-20160816; b=gYAF4ReNcN10HLn/aVDYyxJAU8X9esIKqSAwnEdYsVRGofplRh8BpGgpouVCeWNmPl 0LcBV3Rzm933gxudxpTjTCzDDif02HA8RST95E01dmLt+jf360UwBZxRkdQRFXtuV/mK aPxwCSy1lkq277LYZjOhVWv6AFVE6Z5vA/aDCRc9fY7KG7VDeg1SvM72T/gNlrEYNR8Y h4Agjrn1fQi61A+MuUw/wYnaZbzwfvcELfEbkB2GOYGM34g3acmoafsxVQL5+JILMEoM 38kxbBOYRkHmF9Y73UXuTANDqu4TkOmUg/1tLBCqx/B2Cf1PIJiuH9f5YCSmsC4zCQZj 4Y4w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt17-20020a17090af01100b00250888e039csi262141pjb.62.2023.05.30.02.57.25; Tue, 30 May 2023 02:57:37 -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 S229752AbjE3JfG (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 Content-Transfer-Encoding: 8bit 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 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(); -- 2.20.1.7.g153144c