Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A434EC7618E for ; Mon, 13 Mar 2023 13:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbjCMNVU (ORCPT ); Mon, 13 Mar 2023 09:21:20 -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 ); 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 To: , , , CC: , , , 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.31.1