Message ID | 20230313132021.672134-1-chengzhihao1@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1192976wrd; Mon, 13 Mar 2023 06:42:35 -0700 (PDT) X-Google-Smtp-Source: AK7set8YiERDYJGtavwKM228GVkOAZxyJi7cFshwp3uCyKQFU1aKWIGec1VRIuqLxrj8nBCa50/4 X-Received: by 2002:a17:90b:3b90:b0:237:8c42:27bc with SMTP id pc16-20020a17090b3b9000b002378c4227bcmr35617566pjb.13.1678714955615; Mon, 13 Mar 2023 06:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678714955; cv=none; d=google.com; s=arc-20160816; b=c3w+fKLkuy79ue2skdySerAgIQ0vOjYSnWl+/vuTvZaiXDP3mRtLsA7XRhf+A+vrTt hb8F6id5vF2Iq99BYPdprush22GlJat5s6e/C7IwwLJpouOGgYoiAYmY1S4++uIT265M 7rWUcMwB0nJ8+Ox1zueWy5jEcSYsmsNcACB74MlMb3reWUeBikTMN5ICeYh/C+KqZqdv vABt1oKucEK4xexoKfvmwNGT/AwmGwigMeeFZMvQtSo0qgeRJxggKFxamLrW/dleL7ox eG6EleNLFv67e/yfEnpHDEJDh7CBJ2zHnjhUpRWZldYXC3gy3rEOyPGnmxBI74qD+E/e UzqQ== 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 :message-id:date:subject:cc:to:from; bh=mLBQzsizD8x2WfHxXQnYzXpG7fpbsuqfVZQgW/IhR2M=; b=s/jknxJb8w8tGfTg7Z9w8NFkFJ/UaqSjbgT346MEc8JlPOr28w9LIWxNop88t+CDeF ttLHg1X9Li1d79Nn5myaBmen8sKft52PkUlhXMloAaAlTbos7ZHWUHkTo9ZJpf2MUDeN O7RNEUwDdK3ld4k7ulaLQgUktj/iVMEW0ymc7XuDa51Qq6ULRv+hFCfoW3IyVyYTNe8l kVOZqAsOMvpAJ+dlL3wvFMvVOTMK5Wm4vmuI2bIAjaGLw/b2MotAgjbsJEA3N8YOHKr3 Zq0jTwyHt69h+y3drDW4bceiY9vWHk28L9rTm3GHqoDRX/2DJGKXqSDLXqqM5hOej7vT qzXA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a17090aab1500b002347fd03c90si6367475pjq.29.2023.03.13.06.42.21; Mon, 13 Mar 2023 06:42:35 -0700 (PDT) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbjCMNVT (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 09:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCMNVP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 09:21:15 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309D9311EC; Mon, 13 Mar 2023 06:21:12 -0700 (PDT) Received: from kwepemm600013.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PZy296fFTzrS7h; Mon, 13 Mar 2023 21:20:17 +0800 (CST) Received: from huawei.com (10.175.127.227) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 13 Mar 2023 21:21:08 +0800 From: Zhihao Cheng <chengzhihao1@huawei.com> To: <tytso@mit.edu>, <adilger.kernel@dilger.ca>, <jack@suse.com>, <tudor.ambarus@linaro.org> CC: <linux-ext4@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <chengzhihao1@huawei.com>, <yi.zhang@huawei.com> Subject: [PATCH v2 0/5] ext4: Fix stale buffer loading from last failed Date: Mon, 13 Mar 2023 21:20:16 +0800 Message-ID: <20230313132021.672134-1-chengzhihao1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600013.china.huawei.com (7.193.23.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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?1760260213350138231?= X-GMAIL-MSGID: =?utf-8?q?1760260213350138231?= |
Series |
ext4: Fix stale buffer loading from last failed
|
|
Message
Zhihao Cheng
March 13, 2023, 1:20 p.m. UTC
Patch 1 fixes reusing stale buffer heads from last failed mounting. Patch 2~4 reconstructs 'j_format_version' initialization and checking in loading process. v1->v2: Adopt suggestions from Tudor, add fix tag and corrupt 'stable' field in patch 1. Reserve empty lines in patch 4. Zhang Yi (4): jbd2: remove unused feature macros jbd2: switch to check format version in superblock directly jbd2: factor out journal initialization from journal_get_superblock() jbd2: remove j_format_version Zhihao Cheng (1): ext4: Fix reusing stale buffer heads from last failed mounting fs/ext4/super.c | 15 +++++++------ fs/jbd2/journal.c | 53 +++++++++++++++++--------------------------- include/linux/jbd2.h | 33 ++++++++++++--------------- 3 files changed, 42 insertions(+), 59 deletions(-)