Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp185899lqe; Tue, 9 Apr 2024 20:51:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbvapuWzlXTq2szmSTgHs90SVCVyErjwOvTSQN/CnsYDqhuRKGTbnNvL3N2AmdOUqVLnmENWEnsxhzOIwRVsBeX3P3GT43jFePE6NRCA== X-Google-Smtp-Source: AGHT+IETZJalullpweUWqWSQhVbnzun1tLB422+9Ifuq5ziREOqH9R5Kbpni/Qc/Ki05/R1kyNpA X-Received: by 2002:a50:f69d:0:b0:56e:3034:1d4a with SMTP id d29-20020a50f69d000000b0056e30341d4amr823638edn.9.1712721060126; Tue, 09 Apr 2024 20:51:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712721060; cv=pass; d=google.com; s=arc-20160816; b=QMvuigam69bUF87gyYNtjC/buWTqBiF0qFbrVFvzmxSpDrnVhrg1nj3ODS7X0HLc05 kyt6OHSNRMH7e4V44XyohlDDsb8X9VQlznTsymngR3ohbgxf9nTkpnWETv45O+cNzVqi 1kCkEu0AsXSuwk3TYmFc5+/Ld5jhUYdQ2lmy0N8y7WIA3kdeRt/08pWfLqKxsAO7Cy9G dS2HK0VZvEw4Sw8fL8xIBAkUDhEmPKnS6QecgtCv+nYCgFXM+LukA2d1AKF8p4NEq9iR sBOskCe1L3JcJ87O9v1qCSVHLqOteq7mq8ao8J4JmIHu9pH2oBNs34jdmfJTHAQjOaKk 9+xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=/Oob8Xw6HQcE8RC33rzyP8QtSb/d4MshQgbKk+vJ2CE=; fh=dC1DNofMpo0fGa+HNNOiDPPA5M30OdZqJ1HdUJkde1U=; b=rl+Sa93ZS/udzqCwazJIyartEfsKKGEtrY5aZ6UJEpMV7Ez38Xrtix1XjfVEhErJxx EtSJblOKxUO7rMcfgUasquESp4TGREvSdhl6bWoTFV2Ppo5UPkLXTm6GNczIr0bhQ3+a JmvJmk2jybPlTmR3Z2rFmTJzrlqKoHJqn/Mz5k6XfTTNLI5pNv6a8RJSrzat0G0Znj2h g1BqghsbCOuEyIGS+Mg/7/cTJVNsYGrb4Xjdy2N7MmqVLzSbmu0FvnnmO5po+5O26KAw RLlmQu3R0vgop49rzi2A/wRl0NFZlt17KL8Ja3DU9f8uXHGyVTypQ6mITTV6DWn5xgdm TPFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-ext4+bounces-1927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1927-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id eo4-20020a056402530400b0056be0082fcasi5588099edb.673.2024.04.09.20.51.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 20:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-ext4+bounces-1927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1927-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D68AA1F24E73 for ; Wed, 10 Apr 2024 03:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B455C144; Wed, 10 Apr 2024 03:50:53 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 927F35256; Wed, 10 Apr 2024 03:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712721052; cv=none; b=VCOCZ/P4TANTAEZO3EEIYJ/zvch5L/usoRDpV1lmrlGoejm/RH6jKXH6iakd0rU9lIsDwP5x9mQdXXkRwu4KF0Ilz3DyOVCU7L2i2dHmIpmMuPf7yxkNsttstSSLA4Ojwwic5LdaQUYGphTDvEebS+bQ6VulYC2FSWPbnerNy2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712721052; c=relaxed/simple; bh=yeB6z5EAfe7IOQv8OW6VQNX7Eu6xtR4ZEQqtzaQ7UDo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=n5cCvGgaIvanlw8IfjG6xNs2k4o8E0MW6nGpA+ogwZuWXBEqg6m0yBUtzk7w3iB4DmD96gSZqdaE++vsFPS3niGqOt1we/fRQn1e80CtYqxI9XV8BQAYBs9xXYH6do3CwjT0zf1+XafYIi3QwwKAHmgx6O9vyqA1aZIeVlppc+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4VDpl221dJz4f3m6g; Wed, 10 Apr 2024 11:50:38 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id E476A1A0BE8; Wed, 10 Apr 2024 11:50:46 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgBHGBGADBZmy5ZTJg--.21880S4; Wed, 10 Apr 2024 11:50:45 +0800 (CST) From: Zhang Yi To: linux-ext4@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, yi.zhang@huaweicloud.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: [PATCH v2 0/9] ext4: support adding multi-delalloc blocks Date: Wed, 10 Apr 2024 11:41:54 +0800 Message-Id: <20240410034203.2188357-1-yi.zhang@huaweicloud.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgBHGBGADBZmy5ZTJg--.21880S4 X-Coremail-Antispam: 1UD129KBjvJXoW7Wry7tF13Xw1DJw4rGw47XFb_yoW8WrWDpF WfKF4rXr4UWr1agan3Aa1UGr4Fqw4fCrW7G343tw1UZrWUZFyfZFsrKF1F9ayrJrZ3uF1Y qF129rykua1qka7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyG14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1l42xK82IYc2Ij64vI r41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8V AvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7Cj xVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: d1lo6xhdqjqx5xdzvxpfor3voofrz/ From: Zhang Yi Hello! This patch series is the part 2 prepartory changes of the buffered IO iomap conversion, I picked them out from my buffered IO iomap conversion RFC series v3[1], add a fix for an issue found in current ext4 code,and also add bigalloc feature support. Please look the following patches for details. The first 2 patches fix an incorrect delalloc reserved blocks count issue, the second 6 patches make ext4_insert_delayed_block() call path support inserting multi-delalloc blocks once a time, and the last patch makes ext4_da_map_blocks() buffer_head unaware, prepared for iomap. This patch set has been passed 'kvm-xfstests -g auto' tests, I hope it could be reviewed and merged first. [1] https://lore.kernel.org/linux-ext4/20240127015825.1608160-1-yi.zhang@huaweicloud.com/ Thanks, Yi. Zhang Yi (9): ext4: factor out a common helper to query extent map ext4: check the extent status again before inserting delalloc block ext4: trim delalloc extent ext4: drop iblock parameter ext4: make ext4_es_insert_delayed_block() insert multi-blocks ext4: make ext4_da_reserve_space() reserve multi-clusters ext4: factor out check for whether a cluster is allocated ext4: make ext4_insert_delayed_block() insert multi-blocks ext4: make ext4_da_map_blocks() buffer_head unaware fs/ext4/extents_status.c | 63 ++++++---- fs/ext4/extents_status.h | 5 +- fs/ext4/inode.c | 240 +++++++++++++++++++++++------------- include/trace/events/ext4.h | 26 ++-- 4 files changed, 213 insertions(+), 121 deletions(-) -- 2.39.2