From patchwork Thu Dec 8 03:34:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ye Bin X-Patchwork-Id: 2754 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp538503wrr; Wed, 7 Dec 2022 19:27:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Xopg0B2F30MdR9qJ/T5CJQYQ8Yly0J1XG3wm7OUB2FWr3SRRbSYkxGgwc6l0+IR6f+DeH X-Received: by 2002:a17:906:d10f:b0:7c0:f727:5dd2 with SMTP id b15-20020a170906d10f00b007c0f7275dd2mr11971413ejz.319.1670470025074; Wed, 07 Dec 2022 19:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670470025; cv=none; d=google.com; s=arc-20160816; b=vdA5THmxlOKiAH5Ilslzj9BLafvRnl6b/huare3q88OZH90oseQ9ykO6IcP384aNBj sfMAiK6+jIt6SIVRwLEymxvjMSaFykI7nVlpzatkkqAK/hC2TsZN2nh0l7XSY/OT54jB WCvlZY9ZnuxQykm67mjMZeavtyy5KmIz6Czvs49eiyLOID/dzNV9rUnkAHJiAOv7ZBLf Cm3wEbWFNVlU80t/Bo/MOGe6t6MBa0j/kXKSuBx9lLVt8XzcmhRUL/UoNUVW/LaCIXGs OMe7LBgYe+7xz68QxaU1RT4ZMJ6DZ9zZ/bxfhRhC2l98g882ICZWRJpNuZTgs15lvtpq T+qw== 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=Q2Ez6b7WIbHtznTD058pk2zEC8RPRmxSz50BZrly/lE=; b=DwYwr+pON5JgAf4hupkkd2BiJO/hTO3woTk+tVTpqPfWfX+w6LJUyud/yIS8527sjC yZkLBe1x0A0u8HoGkgbu+I2FZCawqBhyQJLlFe2jwZ3KcoeqvjWUwGkyzKkg3lJE2T5X e6rQoMuWWd4I2PMh4LUKAvjAI0Wl6EZi5G8ZFHthAKd+vDCCzaOJ2SNVfed4+t9vQA83 rHVC25SeAdoJoEB93W0YKsl3HHzThgD57YM+jrg4KaX76CT/a3R9fpJcHtfQdMZNw0oX QCDsI+gPIGIH3Bzq7Q44ZwmUi1A5QtnfiNVddM60LXnsA71wN1x0gJMGsQYBAHQqDtF6 nyUw== 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 f25-20020a056402161900b0046a7f3ddb8csi4740513edv.523.2022.12.07.19.26.41; Wed, 07 Dec 2022 19:27:05 -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 S229656AbiLHDNk (ORCPT + 99 others); Wed, 7 Dec 2022 22:13:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiLHDNi (ORCPT ); Wed, 7 Dec 2022 22:13:38 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB6436F0D2; Wed, 7 Dec 2022 19:13:36 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4NSK3t6SLqz4f3pFZ; Thu, 8 Dec 2022 11:13:30 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP1 (Coremail) with SMTP id cCh0CgAn0a9cVpFjvYz4Bg--.16330S4; Thu, 08 Dec 2022 11:13:33 +0800 (CST) From: Ye Bin To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jack@suse.cz, Ye Bin Subject: [PATCH v4 0/3] Fix two issues about bigalloc feature Date: Thu, 8 Dec 2022 11:34:23 +0800 Message-Id: <20221208033426.1832460-1-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: cCh0CgAn0a9cVpFjvYz4Bg--.16330S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZFy7tr47KrWDCw1xGrW7Jwb_yoW3WwcEvr 18A348Xr97W3yI9anxKr4kAFyYkw4kur13uws2vFn8ZryjvrW8JwsFyryfZrZ8WFW0ya4F yr1DJrZakwsF9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUboxYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267 AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80 ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4 AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY 6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17 CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF 0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3w CI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnI WIevJa73UjIFyTuYvjxUrR6zUUUUU 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_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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751614777009219125?= X-GMAIL-MSGID: =?utf-8?q?1751614777009219125?= From: Ye Bin Diff v4 Vs v3: 1. Fix checkpatch warning. 2. Fix alignment issues about patch [2-3] Diff v3 Vs v2: 1. Add fixes tag and rename label 'out' for first patch. 2. Do not split string across lines for second patch. 3. Just check pending tree if empty, drop clear code for third patch. Diff V2 vs V1: Use ext4_error() when detect 'i_reserved_data_blocks' and pending tree abnormal. Ye Bin (3): ext4: fix incorrect calculate 'reserved' in '__es_remove_extent' when enable bigalloc feature ext4: record error when detect abnormal 'i_reserved_data_blocks' ext4: add check pending tree when evict inode fs/ext4/extents_status.c | 3 ++- fs/ext4/super.c | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-)