From patchwork Wed Jun 14 00:44:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 107639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp923981vqr; Tue, 13 Jun 2023 18:05:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ox5WtWnRLWSv7zpnK7E6A3U/jFwaswBfh8NGF5OAakXw61xVFFNo/zf+UtKV6tBn59N3i X-Received: by 2002:a05:6a20:7487:b0:10c:6:61d1 with SMTP id p7-20020a056a20748700b0010c000661d1mr258027pzd.39.1686704710974; Tue, 13 Jun 2023 18:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686704710; cv=none; d=google.com; s=arc-20160816; b=yRk8GvE+/Ar2OPr3yjaQx/gXYW8ZHvPD88c6pRYShAdKgmcW4ptN35ciwjliBwU4u0 i+RMT0+gax/Dv069AaEpFhJs6vx0KF5X9pfzZVY2ZbUtWV1kQftOpU2IxA/7BWHUbmBH dmf95ovPm5s/rWBpkoUhd5xVHY7T6U5HxfHDrKw4SOpghh6UYb56NC786B5tEekEXqY8 IJDEzqeCzwsJZ/T52Ux2Od0IGBD+at6R6JLRfsCJdxZA4ygdxlQ/2XhQE6CisFh6lQdD hnbzIPffMR++AznE9zbwyQQRZO2TD3lsiM7qA2f5ay+WTfYRwnqWhlbp2zpZbMi/gDb8 PT7w== 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=zJibcEZwswTj+XDjaQa7FwF9mpidqz4gA3skxzAlFOw=; b=nhSWpIU/Io+YgvDy4Nn6EGXmcROAYhsfgYbKyCa63WsJAx9272cfFG0NMUdnI+6cHt 7KwzSZydCjzCAC/XT/Fx8d9Z+qy1E8Tfqt5vJomXralQdbNowxchmtLIAQIczFSBLqaD cMOZ3dSjBSTtQ/OMuPD8Yq5xQGhs10zEcervLJ/k+Twj3yF/HNAKh6eHQmPi94Lvp0dw uNV8JdcEjwJJt6qV6Gew6qdR3XrR5rY1vU/DFsLGfldklK00J6wgLuyWSeJXGjOVQam7 SB4HYkmVKcGf29uQA/mO3V3Rvlav6okYvtRRAnmIcchSlK5bEaLh/0wG0RSkXWj28oAj WxgQ== 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 o25-20020a637319000000b0053fee168aabsi9853434pgc.742.2023.06.13.18.04.58; Tue, 13 Jun 2023 18:05:10 -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 S238669AbjFNApC (ORCPT + 99 others); Tue, 13 Jun 2023 20:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241553AbjFNAoy (ORCPT ); Tue, 13 Jun 2023 20:44:54 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B0091996; Tue, 13 Jun 2023 17:44:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R301e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vl42ewq_1686703484; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vl42ewq_1686703484) by smtp.aliyun-inc.com; Wed, 14 Jun 2023 08:44:44 +0800 From: Yang Li To: tytso@mit.edu Cc: jack@suse.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] jbd2: remove unused function '__cp_buffer_busy' Date: Wed, 14 Jun 2023 08:44:43 +0800 Message-Id: <20230614004443.56937-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?1768638079086480429?= X-GMAIL-MSGID: =?utf-8?q?1768638079086480429?= The code calling function '__cp_buffer_busy' has been removed, so the function should also be removed. silence the warning: fs/jbd2/checkpoint.c:48:20: warning: unused function '__cp_buffer_busy' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5518 Signed-off-by: Yang Li Reviewed-by: Jan Kara --- fs/jbd2/checkpoint.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index 9ec91017a7f3..ba4ae74c7167 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c @@ -40,18 +40,6 @@ static inline void __buffer_unlink(struct journal_head *jh) } } -/* - * Check a checkpoint buffer could be release or not. - * - * Requires j_list_lock - */ -static inline bool __cp_buffer_busy(struct journal_head *jh) -{ - struct buffer_head *bh = jh2bh(jh); - - return (jh->b_transaction || buffer_locked(bh) || buffer_dirty(bh)); -} - /* * __jbd2_log_wait_for_space: wait until there is space in the journal. *