Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp830629rwl; Thu, 10 Aug 2023 02:11:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6pBkdLWQ7jSDjXzyoOOML24EV6Xsm5Q+3SO5ePNnIfnLaB//dAZ8gZfUaX5E2qS2ue6dx X-Received: by 2002:a17:90b:ec9:b0:268:414c:ff3 with SMTP id gz9-20020a17090b0ec900b00268414c0ff3mr1355388pjb.23.1691658690948; Thu, 10 Aug 2023 02:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658690; cv=none; d=google.com; s=arc-20160816; b=ozs9DhlQzuMiaARazMLhkeodyBo8J1DrQ4Ofm1t2LMtXD7w6BgQJnnSi3391OfeABJ 22KWIyycXxjgXkCaQ2ZfQEw4v5tRAzdK+6jyHeK4kFBFJhbuu6KAlRK24AoHwKg84AuG njrEv+ensqvaIFtljssvaI9Cv17unhLlvwhgYAnxU0B9JpZcEJC7KvuLHDcjMFIfuAqR 2ZbfTidaG6bE8g7yNUksFi35Sr2mICqcC2QqmMeYGeY1U0e7I6pCsuYeu0WPgnLh49Oa DWy3UDomFOtKsx8029q1SIVi2CYGd2M/wsHDyHgdmT7mYkLxy6NL8tmtIty8n7vozTnw N4KQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dvtQtYHDWQNXOiJvsHIt489Yc66/luuQ52JKtApjfD8=; fh=fTSaBofNXp03thGUSjn2fCTzw7oFshHI80Fe6i8kpiM=; b=me7pyawcy/amKtrbTLLGWpt1J9+u64P2Pf/f+Pat+xtkt9oeVtTc+ke/UtmXJmk8+Y 42bHhCSJPZsU9wSX4w5H0AVUe2W416gDQldpgViaTo68yElTffBZCfQAwQ9zSXrkCRKJ Ity3hbbkQuDxcDfGQ0LIah6vSaiGnNlbydrP5y0pYKWKExQxDkJdb3ALnBvKPmOzCzBE 9yKZSSWnonAYaAyNtS32tV1NcJCEWKcNkVu/OiTFBFsWsO7yVde+2r3Xr2Gj6kB7Ta9e RF+jIyEbzm4evoIoowVrGfguY28Jhr1Jc35Gq2CMzlfixKEBEh26vkKErM0N6RYylvUl WGyg== ARC-Authentication-Results: i=1; mx.google.com; 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 o24-20020a17090ad25800b0026390b4a4e0si3202983pjw.124.2023.08.10.02.11.17; Thu, 10 Aug 2023 02:11:30 -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; 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 S233729AbjHJIyt (ORCPT + 99 others); Thu, 10 Aug 2023 04:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbjHJIyg (ORCPT ); Thu, 10 Aug 2023 04:54:36 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E25F12127 for ; Thu, 10 Aug 2023 01:54:35 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RM12J1Tzdz4f41S0 for ; Thu, 10 Aug 2023 16:54:32 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.170]) by APP4 (Coremail) with SMTP id gCh0CgD3hqm6pdRkGjJ7AQ--.1500S13; Thu, 10 Aug 2023 16:54:33 +0800 (CST) From: Zhang Yi To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, yi.zhang@huaweicloud.com, yukuai3@huawei.com Subject: [PATCH v2 09/12] jbd2: drop useless error tag in jbd2_journal_wipe() Date: Thu, 10 Aug 2023 16:54:14 +0800 Message-Id: <20230810085417.1501293-10-yi.zhang@huaweicloud.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20230810085417.1501293-1-yi.zhang@huaweicloud.com> References: <20230810085417.1501293-1-yi.zhang@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgD3hqm6pdRkGjJ7AQ--.1500S13 X-Coremail-Antispam: 1UD129KBjvdXoWrKFWrWry3GF1xCF48Zr4Utwb_yoWDJrb_Wa 10vr4xW39xJr4xA3y5C3yj9rs09rs7ur1kWw1xtw4kKryUJ3ZxXF1ktryjvryxuw1vkrW7 Jw4DKw4IvrZFkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbTkFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUAVCq3wA2048vs2 IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28E F7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr 1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0D M2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjx v20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1l F7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAKI48JMx C20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAF wI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20x vE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1lIxAIcVCF04k26cxK x2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI 0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUArcfUUUUU= X-CM-SenderInfo: d1lo6xhdqjqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 From: Zhang Yi no_recovery is redundant, just drop it. Signed-off-by: Zhang Yi Reviewed-by: Jan Kara --- 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 e2bf6f260500..4a07b3a7561e 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -2497,12 +2497,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"); @@ -2515,7 +2515,6 @@ int jbd2_journal_wipe(journal_t *journal, int write) mutex_unlock(&journal->j_checkpoint_mutex); } - no_recovery: return err; } -- 2.34.3