From mboxrd@z Thu Jan 1 00:00:00 1970 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 CEED2C54EBC for ; Tue, 10 Jan 2023 13:09:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238400AbjAJNJ4 (ORCPT ); Tue, 10 Jan 2023 08:09:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238626AbjAJNJs (ORCPT ); Tue, 10 Jan 2023 08:09:48 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73ED06147E for ; Tue, 10 Jan 2023 05:09:47 -0800 (PST) Received: from dggpeml500016.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Nrrdp0K7VzJq88; Tue, 10 Jan 2023 21:05:34 +0800 (CST) Received: from huawei.com (10.175.127.227) by dggpeml500016.china.huawei.com (7.185.36.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 10 Jan 2023 21:09:40 +0800 From: zhanchengbin To: , CC: , , , , zhanchengbin Subject: [PATCH 0/2] fix extents need to be restored in some cases Date: Tue, 10 Jan 2023 21:34:05 +0800 Message-ID: <20230110133407.994711-1-zhanchengbin1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500016.china.huawei.com (7.185.36.70) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org According to the return value of the ext4 split extent at function, it is distinguished whether to restore the split extent. If the file consistency is not affected or mount for `errors=continue`, we need to restore the len of the split extent. zhanchengbin (2): ext4: fix inode tree inconsistency caused by ENOMEM in ext4_split_extent_at ext4: call ext4_handle_error when read extent failed in ext4_ext_insert_extent fs/ext4/extents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.31.1