Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2448795rwo; Thu, 3 Aug 2023 09:29:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEXFSIyelEa55iSIr8y56SU7F4NcNSQxp5RcJ0X03sa6ANhtczhIAzK8gk7QNLjyP2EmWn X-Received: by 2002:a17:903:2449:b0:1bc:1189:17f with SMTP id l9-20020a170903244900b001bc1189017fmr13312703pls.42.1691080168317; Thu, 03 Aug 2023 09:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691080168; cv=none; d=google.com; s=arc-20160816; b=E0UiVsDC8wYGBBLal+C2iQj63htB6asXlG2bIV29wjUuKznKxdGcO5Y8aBwHRH1Kg1 tdQfhMGI1uZVo/bGRJNqfjLMIkRbJH3PFNOhKgk/P1y/VN3vuxmNLXDmWf4k/fkXuOCu LH8tUurlC99r98v7N/pqhU3HSEYtWZUCAUusQ0pR9p4J61tvUl9g8SAu3U1VzlIAdHJb QWVSPnWhUIhgVQDF30iCipyCF+kPgE121p8Yt1PzWsXifbHGKj2UsoUqY5U8T7j2K6h2 kH2Dn+Q3Re9bqktVImENvMS/ZAR+FpgTdDiqY7BvnkBRCT4Cver8b+/lwHFkze9Wpaal AqQQ== 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=0KtPDmDzwP18ze0S0C2NQyTwBqH1HPgePYgsE9Izx0E=; fh=2Cn0oHhRunYO+MqeElF523wQvgmjxkSAMpH3Se99YF8=; b=oCeb+MVUjfu7B/RCldR1aNZF+DjjypuVvUQQl38Z2k8zWSovtsS1txreGVUjAhWj93 WGObyqO4/KlpVRyPtEjQe9OkW9J2kO8AwSJlVz5FvnJZ/CJcEbwcKjq4ioF0obnv9ud0 EZVk7jtG+fm6RUuhSibUrfmqtpJPmnYENt8rNR/NzVZiTbFKZVHe6Gubg4hFMV+oFtru Xt7wrOAXy8py0m6hcLUtuweSOeVFf6Sv+5CI9jqZ2YBfUaCEupwCoWKBdXW1DoRMCo67 raziw9UjUNaR4YhVNpI6oBcppCOn7GgakdnKV8y9Y1QzAkizHUiggXWLFupJWgglJ/2O FuGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=pDTWNguE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=C8P19h2A; 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 g1-20020a170902d1c100b001b53c722c3fsi89226plb.597.2023.08.03.09.29.11; Thu, 03 Aug 2023 09:29:28 -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=pDTWNguE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=C8P19h2A; 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 S233790AbjHCPt5 (ORCPT + 99 others); Thu, 3 Aug 2023 11:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237233AbjHCPt5 (ORCPT ); Thu, 3 Aug 2023 11:49:57 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6012AE6B for ; Thu, 3 Aug 2023 08:49:56 -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-out1.suse.de (Postfix) with ESMTPS id 0526721972; Thu, 3 Aug 2023 15:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691077795; 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=0KtPDmDzwP18ze0S0C2NQyTwBqH1HPgePYgsE9Izx0E=; b=pDTWNguEihCDH6GJFVUqJ9tzcV/QU7im5pU3gaBU/jGHC6HEReZlqndHfFyJ8N6C1IlwOg F7Ex4GSGQ9GPn9oLHDD1vmaolBJJdbUXlpTP0Qh/JtdDBtw62/mVOKme2Adag+GGazbio3 HGsfggrcwI7idVBWLZzZu9QVek1dC5k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691077795; 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=0KtPDmDzwP18ze0S0C2NQyTwBqH1HPgePYgsE9Izx0E=; b=C8P19h2AqovbfL/RkdZvy1VxYd+XmPgpIFPtw2B1We9rMzqNgTUMxINVKeeFGdF8jnkYD2 ZpHyBW+6oxuhqaBA== 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 EBBB5134B0; Thu, 3 Aug 2023 15:49:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OHiJOaLMy2TEOQAAMHmgww (envelope-from ); Thu, 03 Aug 2023 15:49:54 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 927BCA076B; Thu, 3 Aug 2023 17:49:54 +0200 (CEST) Date: Thu, 3 Aug 2023 17:49:54 +0200 From: Jan Kara To: Zhang Yi Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: Re: [PATCH 09/12] jbd2: drop useless error tag in jbd2_journal_wipe() Message-ID: <20230803154954.6rhr4m4qqer2si6r@quack3> References: <20230704134233.110812-1-yi.zhang@huaweicloud.com> <20230704134233.110812-10-yi.zhang@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230704134233.110812-10-yi.zhang@huaweicloud.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 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 Tue 04-07-23 21:42:30, Zhang Yi wrote: > From: Zhang Yi > > no_recovery is redundant, just drop it. > > Signed-off-by: Zhang Yi Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/jbd2/journal.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c > index 065b5e789299..cc344b8d7476 100644 > --- a/fs/jbd2/journal.c > +++ b/fs/jbd2/journal.c > @@ -2506,12 +2506,12 @@ int jbd2_journal_flush(journal_t *journal, unsigned int flags) > > int jbd2_journal_wipe(journal_t *journal, int write) > { > - int err = 0; > + int err; > > J_ASSERT (!(journal->j_flags & JBD2_LOADED)); > > if (!journal->j_tail) > - goto no_recovery; > + return 0; > > printk(KERN_WARNING "JBD2: %s recovery information on journal\n", > write ? "Clearing" : "Ignoring"); > @@ -2524,7 +2524,6 @@ int jbd2_journal_wipe(journal_t *journal, int write) > mutex_unlock(&journal->j_checkpoint_mutex); > } > > - no_recovery: > return err; > } > > -- > 2.39.2 > -- Jan Kara SUSE Labs, CR