Message ID | 20230210032044.146115-6-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 s9csp721132wrn; Thu, 9 Feb 2023 19:09:52 -0800 (PST) X-Google-Smtp-Source: AK7set89Jn1zgQ/K6qx+f0i0SErJTH016oyxUXtfGC7xCcb1qwz9OhoP76+e0G/DDWckZzOm6ZK7 X-Received: by 2002:a17:906:2971:b0:7c0:e30a:d3e5 with SMTP id x17-20020a170906297100b007c0e30ad3e5mr13132368ejd.18.1675998591883; Thu, 09 Feb 2023 19:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675998591; cv=none; d=google.com; s=arc-20160816; b=gm8bLRCj/buWJ//QBoB6+KIPwSs1rOODoso+2SDDNXmJKmvp6Z0sdNJv9t2F+zwXw8 ujWOk7y2MRjWfIyW/9OTZIM2vx4fDCDhlew9YCzdnM1BEX3ns7HA0ThbBel8r5puw4lX FQ0in3stehTBa4PvH1CjDf7zyMGoh6jVfCN3vXtWUBrungiqcrIJC8D2Jevyo91nKGIv qbNgzwBerWmQJgA/QDP4LYN0YQJGQClksZiXSpLQFEq6lJLCSbTnaO0fP66upAyibUAZ ZIb7W5271/dk5fDM4F8SoqjPpLg56EvLq4cgRsHkLqKlQ2ysl014xEjdTc3aWlaLCiSu 6Qwg== 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=OfOPx3Zaqi5Uoa2sREu0p4j/s/QLrOS+x6DZjeo1srg=; b=niUVFLOO7OLreHXuWG4CTVAGWPFSQsVTKXtE2ArFfOtwe1/FmmYgFpvhLbN4FdrE3B 7/6dBGso1l2q1a6Fa/uzxXNuv7aUkGyW/peJf82w7cjr/HgX5kzjtvoItTh3f+9CKLKR 8DBrPgZgocd401Th5Ax7dRNyTiONlPShm+ssof3FcyX/t2tgd07mtYes7K2kk2N6mb8z oVpPx/m2+L4gKAROyXhAx3q+V/QGb+M7iYkLjWush0Hu0rCd7EndLOStwoMG4YU2Ek2Q y9+oD7etAdQTMzegF5xSoEAv2XCUI8q9DUoUxREVCi8E3EXQ81uSugI2udrG2pi/z4j9 jllA== 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 gg19-20020a170906899300b00883ec4c63e2si4157196ejc.645.2023.02.09.19.09.26; Thu, 09 Feb 2023 19:09:51 -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 S231139AbjBJC5U (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 9 Feb 2023 21:57:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjBJC5F (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Feb 2023 21:57:05 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC6C5663D3; Thu, 9 Feb 2023 18:57:04 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4PCdgJ0tC0z4f3nTN; Fri, 10 Feb 2023 10:57:00 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP3 (Coremail) with SMTP id _Ch0CgCHgR96suVjIkgqDA--.35208S9; Fri, 10 Feb 2023 10:57:02 +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 v2 5/6] ext4: fix super block checksum error Date: Fri, 10 Feb 2023 11:20:43 +0800 Message-Id: <20230210032044.146115-6-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230210032044.146115-1-yebin@huaweicloud.com> References: <20230210032044.146115-1-yebin@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgCHgR96suVjIkgqDA--.35208S9 X-Coremail-Antispam: 1UD129KBjvdXoW7Jr18Jw4xWrWfZw4xJw1rCrg_yoW3KFX_Ga yxXw4rWrn3Aa1S93W8Gr4Yv3W0grs2vF1rJas3Cr1rXF1DXFs2qw4kCrZF9rn8ur4ktr45 Ar48Kry8Gr97XjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVAYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7IE14v26r126s 0DM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4AK67xG Y2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14 v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAF wI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbV WUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF 67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42 IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF 0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxh VjvjDU0xZFpf9x07UZo7tUUUUU= X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1757411899395430888?= X-GMAIL-MSGID: =?utf-8?q?1757411899395430888?= |
Series |
fix error flag covered by journal recovery
|
|
Commit Message
Ye Bin
Feb. 10, 2023, 3:20 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 af03035606e1..ffcb0d58d407 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; }