Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2426808rwd; Wed, 14 Jun 2023 02:38:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NghOaJB9pSOt3uXmFRCh8MliBG472Pba2MDpdHESFB8B4cqhZ8T99FsYBqSfr7RyMcynZ X-Received: by 2002:aa7:c713:0:b0:518:6bc5:bc80 with SMTP id i19-20020aa7c713000000b005186bc5bc80mr4465321edq.12.1686735532155; Wed, 14 Jun 2023 02:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686735532; cv=none; d=google.com; s=arc-20160816; b=CbQwS3j1GfUxU6pREH9kb6s16C9W9tdPtybVnYp0rUH0UAswGoaHdKjxHhBx3n3dXA TrxI4KpGImVVJ5vOpgRVdd++GvaYuzRDZmQZU8N4M+FYgJXmupRxkCF/xp2TgOU9oIHT ctT/77PmjLmV0OKY44D7sVj3fXH4q9nCtQ+EqR3B1DygSc6MaWBj9WXtREiIWJBIRzgE 6UB6sQCyMRBGEWAK4ihxmQd79OixQBvKhsbgm0n3b8e4pBdv9XKsc90yRPeQ3pUoszov G5iSgs5VpUxdD7D5ajIwwKteI4ULxhzeNeACEpuOYj2jOibxO1k0TXPJVN4b5GL8UyaL Aedw== 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 :dkim-signature; bh=Raq4wSbTtPkjnLNJhAyMZD8KD5DkYkXU3htNdimdemQ=; b=oWlLTxOmI/IWTS82P7NdTWIDeyDnIpngRujrAcP6ePnJNvX3zw6WfGlje8uI8tyvku AcnE/wQQ+nhJD/eGPi7AeaufMTSc5j35nrbrPwJOxFlWeB6G715Spuzmu7t3ZfHS8u7h NJ3MK+ofQZeFYHDo/OBLOj8qEcWkIswyPDv6Q75iqs5dQ38gZQ/Kw+AUQRj05YmCMoPP cqxeRHfhrKRmHhGPG88u3OtgOEI8wf4p+G+fK75IADbjPHh72sioXja8rcf+uVRtYkLU ZYdw7H5Y6cfIRn6TrH63MrGlElJ2xJvMq+i3H6zzPpgC4WOWKmwrwQBbsIoYA8GjrWVW LzHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fSSCHKJR; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca2-20020aa7cd62000000b0051891749b54si709882edb.40.2023.06.14.02.38.26; Wed, 14 Jun 2023 02:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@suse.cz header.s=susede2_rsa header.b=fSSCHKJR; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243903AbjFNJfh (ORCPT + 99 others); Wed, 14 Jun 2023 05:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244173AbjFNJfH (ORCPT ); Wed, 14 Jun 2023 05:35:07 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32A3D2126; Wed, 14 Jun 2023 02:34:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5AEB91FDD4; Wed, 14 Jun 2023 09:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1686735293; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Raq4wSbTtPkjnLNJhAyMZD8KD5DkYkXU3htNdimdemQ=; b=fSSCHKJRZ+Zq6h96vVBCGSq4ySljHcaC1mq9va9R3RsN0nM8806ZD9f3zWgSiqjvOuLQ1e 2uHg6k6nYRo+psxt5NMVR5wYAuYHvmDyWXGXwVSGCP0acuOVH2gJ/GJguCzCNHHcukvYEC sTTkb7F94nZkOqH25H5ynvq9WzNw1mo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1686735293; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Raq4wSbTtPkjnLNJhAyMZD8KD5DkYkXU3htNdimdemQ=; b=9vIuJbd51oRCuVxW0JAIvLpvwO2GnmPJokXbRP3x3LXtJTF7QjK71zm4vgWYEiX8tt51pI WEEZbzipzMJIv0Ag== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 492F61391E; Wed, 14 Jun 2023 09:34:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id k7zXEb2JiWRTXgAAMHmgww (envelope-from ); Wed, 14 Jun 2023 09:34:53 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id CE94EA0755; Wed, 14 Jun 2023 11:34:52 +0200 (CEST) Date: Wed, 14 Jun 2023 11:34:52 +0200 From: Jan Kara To: Yang Li Cc: tytso@mit.edu, jack@suse.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot , Zhihao Cheng Subject: Re: [PATCH -next] jbd2: remove unused function '__cp_buffer_busy' Message-ID: <20230614093452.j47ntd4slhvra2yr@quack3> References: <20230614004443.56937-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230614004443.56937-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-ext4@vger.kernel.org On Wed 14-06-23 08:44:43, Yang Li wrote: > 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 Ted is now debugging other issues possibly caused by the patch series making this function unused (CCing its author). If we need to respin to the series, we might as well just fold this fixup into it. But otherwise the patch is obviously good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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. > * > -- > 2.20.1.7.g153144c > -- Jan Kara SUSE Labs, CR