Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7762273rwl; Tue, 10 Jan 2023 05:13:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRWQfjCLeUQy5O6IQduJwFG5wFBp9t8OUxrP7mdoCpbt6pxNxAHjKrM/Dct/V/qGBp8ZYy X-Received: by 2002:a05:6402:2074:b0:48e:a97e:9f2d with SMTP id bd20-20020a056402207400b0048ea97e9f2dmr22655516edb.11.1673356389440; Tue, 10 Jan 2023 05:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673356389; cv=none; d=google.com; s=arc-20160816; b=Qx4UYF1OMpfy7RMlSqP62xwusQ4CypDPHIB3tovWhE4ygWgGL/E+u3ZBYierDfaslk q4jh3XKkVUcU6jqE2P1Hma39VzM7VssqLR+G6ADsS7fZ71TyH7lwmvENGNDOyxSAYc3Z LCblWiwwo72jRmNw5Q+8rnEqofAeiePMiPuf3SHetXIRETSrskJ6m57XbSRTSjtcY5ab 5k3/nv0G4YNStc/l7CXahbDV/MnvPuARFVYQiWT13eS1tE/TcgjWYnx0VdGJVGQutXOq XnewGbCiZgIFnw1J14bUiMJluTJHdUIaD12wefAGTzOXdu+rq2KGdOcpkr4s1YCtKfey JccQ== 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=cw1esEAjX3mxT4SrGsTLbCTCR0p36DfLOKRpvXBnxPo=; b=oB9p5PHkMW6tCfMWdu6ZRpKQdLDvotEk29EUEgrS3GY/VpWmiFiJ3YwcqdLwLGdWDA qzYsqAq0Qml/PlHhiHS953rFDelsWsCELjAbGGAgsCVepsT/Z4aTQgzAdk1KtFm+75rh +yAIz41mAoJ8WfAnHOMKQktvxYHDz8vj0zkXN3zpeJRNVgHVy/ULkeWftQ5na3vU8m+w uIzRq6dCFinLSfjLWhU8uYsByHOo9NgDjKt9H1c7G4cxcitTgHgjbhd4/xwOrbd39PLG yZEvNgAIkV4pe9LdWdPu+OXA+CLpjTjdS3bI2BrjZGUKxVabouZJeD09Enr9bnPawGZR OjpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a05640205cd00b004841817039asi13913734edx.614.2023.01.10.05.12.41; Tue, 10 Jan 2023 05:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S237925AbjAJNJz (ORCPT + 99 others); Tue, 10 Jan 2023 08:09:55 -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 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: 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