Message ID | 20230201114651.4090446-5-yebin@huaweicloud.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp220025wrn; Wed, 1 Feb 2023 03:30:35 -0800 (PST) X-Google-Smtp-Source: AK7set9G7Ym1BYOVKZ05fSKqAFZ7LULptsCBfhNyjg9BbK3P7uKTrMsxND+vH0IXo5327jNmOBgk X-Received: by 2002:a05:6a20:669e:b0:bc:c86a:f60f with SMTP id o30-20020a056a20669e00b000bcc86af60fmr1882085pzh.54.1675251035501; Wed, 01 Feb 2023 03:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675251035; cv=none; d=google.com; s=arc-20160816; b=SJ+UdbxJFnTLVZzt1zhbXmG6Nz9y20Db2M1kef6d/YkazdXO949QG8qmwLVhh/v346 J44Dncqz2xiDxJjQNoQ4K3/Kt9i0DKMpsNYBeN+cjmSwxcAIxjtEbWrDgmsu5gVA4FzG 9f60x7GutUWk7xVDCZpHvOUDg6ow1NP7QvEjXGtozI0NqL/iftqjeNWMYwMMarCoB1cH zchH8cB0XeKxnHuovX8BB7ks1nxBfEZGgwjsnfbFh3hCZlM+knqTOF5ACIJRytUtwqx4 gT3b5JgoLxnp8QFJDeYuzw3I1rXYFcjrfHn2xjfVuEXh+vAR2hT5IBs/xEMpDckYDEvt M9xA== 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=Y/7bnLZ/1w68OdKODJQ2xpRUhFmHxJIYcYViAGhb7rg=; b=qy75fTvWJNwwT+8YvHtKf30UDaBeq4BSwC19J1Ma4FSNWLEIVVygPAVmIqlxyo9VI1 wgcARvLnob8fDlWuXpPOU/JgQMocGlvx9tYDaVoYRx4DqIkDjGoG3YpFxXXK3YAZ4aTX aWLNORIJlhvJwK34hDLfwRa2QDVd2Jp2vtABfslXBzxFyi5x+/k3CrLUhQts0q71fucE we2RsVPGPzhkgvNUxqquhC7NYQs2htijVcw0tHbiDEtAGE4MrDKs+uvHwaQQU9hL0MPD dn6IsgMktfvkkGAw+kVKC7UrqCN+fTkNzStS+8Q0Cem8JyymoHeNAf0oMCjZvI4s6J8d /wsA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a63b252000000b004b64146f242si19638209pgo.430.2023.02.01.03.30.23; Wed, 01 Feb 2023 03:30:35 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbjBALXY (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Wed, 1 Feb 2023 06:23:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbjBALXC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Feb 2023 06:23:02 -0500 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FF96A63; Wed, 1 Feb 2023 03:23:00 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4P6KKB48Pcz4f3jYs; Wed, 1 Feb 2023 19:22:54 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP3 (Coremail) with SMTP id _Ch0CgDn4R+NS9pj_j45Cg--.57546S8; Wed, 01 Feb 2023 19:22:56 +0800 (CST) From: Ye Bin <yebin@huaweicloud.com> To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jack@suse.cz, Ye Bin <yebin10@huawei.com> Subject: [PATCH 4/5] ext4: fix super block checksum error Date: Wed, 1 Feb 2023 19:46:50 +0800 Message-Id: <20230201114651.4090446-5-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230201114651.4090446-1-yebin@huaweicloud.com> References: <20230201114651.4090446-1-yebin@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgDn4R+NS9pj_j45Cg--.57546S8 X-Coremail-Antispam: 1UD129KBjvdXoW7Jr18Jw4xWrWfZw4xJw1rCrg_yoW3KFX_Ga yxXw1rWr4fJa1Sg3W8Kr1Yv3W0grs2vF1rXa93AF1rXF1DXFs2qw4kurZF9rn8Wr4vqr45 Ar48K348Gr97WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVAYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7IE14v26r126s 0DM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4AK67xG Y2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14 v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAF wI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbV WUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF 67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42 IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF 0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxh VjvjDU0xZFpf9x07UZo7tUUUUU= X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756628029464611876?= X-GMAIL-MSGID: =?utf-8?q?1756628029464611876?= |
Series |
fix error flag covered by journal recovery
|
|
Commit Message
Ye Bin
Feb. 1, 2023, 11:46 a.m. UTC
From: Ye Bin <yebin10@huawei.com> As commit("ext4: fix error flag covered by journal recovery") update error record when do journal recovery.There is need to recalculate super block checksum after update error record or will lead to super block checksum mismatch to data. Signed-off-by: Ye Bin <yebin10@huawei.com> --- fs/ext4/ext4_jbd2.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 7c0f2bed0ec4..21f4f00429a1 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -430,6 +430,7 @@ static int ext4_replay_callback(struct journal_s *journal, journal->j_replay_private_data, EXT4_S_ERR_LEN); if (sbi->s_mount_state & EXT4_ERROR_FS) es->s_state |= cpu_to_le16(EXT4_ERROR_FS); + ext4_superblock_csum_set(sb); return 0; }