Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp477101lqz; Sat, 30 Mar 2024 05:10:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhAQab95mjAZEsBaM00CmaXtwf3bcfNFgOSCYOl9FopZbQ3xV72e5FN7NmaAXBcUitmOGIeO4rKsUQTnaEXHxhHJJmuESU6ZLTXRvU+g== X-Google-Smtp-Source: AGHT+IFXfAv1EmJcVB1TP6fmlSbUztjrvd18pqAFedatmmQA2VYzJVie9eIa08pDU8hGvxApyEgM X-Received: by 2002:a05:6a20:7d9f:b0:1a3:6817:1b02 with SMTP id v31-20020a056a207d9f00b001a368171b02mr4571512pzj.55.1711800659572; Sat, 30 Mar 2024 05:10:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711800659; cv=pass; d=google.com; s=arc-20160816; b=uAY/KPSsIczsTjM4lzwVuxdTeV2tQKUtVOnJKtZ8mtixIJBqS1bWkDzNtERCmRMrv1 YbfHzwXuJIz029zF1xOMTmbBQCkiBRqtQUvgFG22MXA+VNfHmKWvJH+yv2NsmTsdyXc7 y1dhC+g4F4MIkHfU/2BUYn2k37L4i81/wJT8Ou0OWlAMBS1dYJRqFhF4HLlQKBvsPYwy Z/Ea4hVfYrAIUxcJ2+DP2biktRohBOpOIDDziB6GKin7mZFJvIdeOCD5zo8IIK7UmhJw hEiYovGX6NRsc2hfNLG/lyAF/FtNQC1YC838WE5CS3nC1QkIvm8QFYlVQ1+bp87z2s0Q JqCA== 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=2QSIFaHnvIwzVpPkiyCJ+IM5j34I3WiOZVcJQQFGLmM=; fh=dC1DNofMpo0fGa+HNNOiDPPA5M30OdZqJ1HdUJkde1U=; b=kCr0QZIB8cbHz3nXkGXFN6NNYr8tT4OsGMTgtEdJYhO/7uW5LTyz4V/irdFYSRVMgg NHmn69rTyo/+VrEY1JYgSzlinJVeNO7cI5f+Yrt3mGnWG47jmqu8Yh38396ecjIwabNd /iS06yFvAVEHazXlHty5+L7bdVuw2J5Tl7fTw/2SGLW5Uvhe2re4QQKhsUrrz4Q7RGxr c2vjrwlsaXxoHWKbwXBGx/+uHK2I1A6XB7xxiYZLb5gPd8D3Wqe9dAXYs9RXHJ42EQyr +U5BZOjYMMjDf59MVBY3fJYuKJwENPWsfSaUU/RKkWNynuTgbXZPsjybKZcNXGy/+e9A 8YzA==; 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-1794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1794-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i5-20020a17090a3d8500b002a1f5dc8037si6715930pjc.109.2024.03.30.05.10.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 05:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-ext4+bounces-1794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1794-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 483E8B2163E for ; Sat, 30 Mar 2024 12:10:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 629D339846; Sat, 30 Mar 2024 12:10:40 +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 D219B3308A; Sat, 30 Mar 2024 12:10:37 +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=1711800640; cv=none; b=pNuhuwHPJKg59ewr0SsrEsIAQQPIS9uSYVvMU/N2+62RA0Qe4zYSzwWuvgf8+9ft4gnH28ka01dm53ByfDXqf66ND/wlFc1SrOUMAHMacrF9mv1o2/po3kumIiG/YET20G9He7cNEnwr8en9Z+kVwh6Al3GaM1TwnzNQhPR7bVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711800640; c=relaxed/simple; bh=a+LNOdkQlYnSt/8ppmspGPD5Pv/kj3Xgnu7c4yJ9ic8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ljSoKX0x7m3xK44r3m2lL0ucS8IExoXrI8S65Z5cZZ91+N9rT7BJ7/PYdj6RcoglMcTTs67EC94R3jvJ6cjQeTL9JT49dZ2ZoK+unmvOZ4looRdFc5gLwhw6Oj/EIUTVVxmvCX/rJ3KS8eVTO7vwFjujzGW3uH+vfvUrZC1+O48= 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.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4V6GLq3Mpxz4f3jQY; Sat, 30 Mar 2024 20:10:27 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 93F8E1A0232; Sat, 30 Mar 2024 20:10:31 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgAn+REsAQhmkPEjIg--.10652S4; Sat, 30 Mar 2024 20:10:27 +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 0/7] ext4: support adding multi-delalloc blocks Date: Sat, 30 Mar 2024 20:02:29 +0800 Message-Id: <20240330120236.3789589-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:cCh0CgAn+REsAQhmkPEjIg--.10652S4 X-Coremail-Antispam: 1UD129KBjvJXoW7Wry3JrWkZw1ftw13GF1kGrg_yoW8JFWfpF WS9a4Sgr48Ww1aga1fAa1UJF45Xw4fCr4UG343tw18ZrWDZFyfXFsrKF1F9ayrJrZ3ZFn0 qF1a9ry8u3Wjk37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyl14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU 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], and add bigalloc feature support. The first 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. 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 (7): 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 | 165 ++++++++++++++++++++++-------------- include/trace/events/ext4.h | 26 +++--- 4 files changed, 162 insertions(+), 97 deletions(-) -- 2.39.2