Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2966216rdb; Tue, 12 Sep 2023 19:13:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEv1UAupN2g6FHEdiwnTjB7AJwGE499E1mq4aJQXSWJoSrOI5CD0dMXfHlBvHdHdWLYGTiX X-Received: by 2002:a05:6358:989d:b0:135:46d9:12f7 with SMTP id q29-20020a056358989d00b0013546d912f7mr1959668rwa.26.1694571228732; Tue, 12 Sep 2023 19:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694571228; cv=none; d=google.com; s=arc-20160816; b=YiWeLMD5x3v6HnVgrERZS776rRXzixHSBxM/vul0kOEr4ntDw7R6wHTMp2R7AnIJcV YiON5l5Ge9yS5wm/1exL/NZktSdAa6ceybTs2riqXZqiOH1f0aAt2q4LdJNCBQlotTg4 I8ElNY5aS52J9oCUXOtLEXPCPs1PHC5g/fXYUFY8bmTYDya89Q8BYR68Pyt2/3CtU2ms okoRJissT5h2sP+qDfEURXpz3XGj28A5bjrZDYZ1q2adWD4kjqTxVqj4VUgObYVquXO8 o6XNGouFT83dYAYNC+JfZDCpsqK9R60n5apHDTxXhCQV6fi6I/duRca7ku1N2f8afcD+ HqiA== 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:dkim-signature; bh=h5lDV9LjddUeh7Xv3bK22WOy8oqI4Udt1N/7UqzzxWk=; fh=PtPIyxnVHsGO7Z0vHRPrGP8t6P+lFQwWy/k0M5r53P8=; b=1GP9OHApVkSIK1y1VJVSF0AKQrhF4zW0t/NntI8tpMXOyDzsK1uEUIZ5SOSHWYvKSc fdCS879cwUjtCXxMW+EPj55eLSOIXkITA0xLQkTRfyFeLEPDWgn8XGFN1uAeDOf7DFQ9 /zMfXztAFjO4cPFe3KAPY5IJuef8TvgpOYfS4l12E+Z1S6iNqK9Oh0BbvtV8kIyfic1U f0dJEKQA6XgJrh3UCfpPwXiBB7bL38sv70MSd7kNGN9maNq9yooNI1GN3vFwsJzP5aFw XFXjhs5ZLHWZC8srkL2gbOJxKqQn3uYleuy50xyudNENaLz8iiYS1Tvd9YbNu7nK8qQv 7Aog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oULliiqU; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fb36-20020a056a002da400b0068e3950c705si9467521pfb.24.2023.09.12.19.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oULliiqU; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B357B80F5F32; Tue, 12 Sep 2023 19:13:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbjIMCMP (ORCPT + 99 others); Tue, 12 Sep 2023 22:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238128AbjIMCMO (ORCPT ); Tue, 12 Sep 2023 22:12:14 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB07170B for ; Tue, 12 Sep 2023 19:12:10 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-655de2a5121so22612446d6.1 for ; Tue, 12 Sep 2023 19:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694571130; x=1695175930; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h5lDV9LjddUeh7Xv3bK22WOy8oqI4Udt1N/7UqzzxWk=; b=oULliiqU6MlAbYtyWIli3RCYS7H4K38rE8eMFqg89vH7QknQNRD/adIx7VVchM2UDi bl5FrODgsDgZox85MWfPhB4k+XHQdqwziTpaO2TIXnDCS/BZtgR6gB+rRQOUsQlHFUn/ F9Ugzj/+vvDF/ZxrQWykJ4lM0f6YNNzt3b/+2IjAS2UMqZewcqbCn2KqTt+1tQvySIYi 1v2GUyrPQ+2BKNyPzjP9Um9FuJv/MbM2+A1fk48ZNvdpTL3xAVb2N8ugGW2qTknEFpJO BbNv4jrQFTeH9mJAuXQmkhby/lTC6e+kKMxSvlEbhx+0RoS5FtXd0SUKdq3ctctvK+NU GlJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694571130; x=1695175930; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h5lDV9LjddUeh7Xv3bK22WOy8oqI4Udt1N/7UqzzxWk=; b=v3CltzRf4EvRndBd0SSrbNoKY6CEePR7sB95bS59Mwnp6aGjYmJW8LOUGwzTBp6C8S 6BWL8vVOxulhI5ndRNyHs9EeKN8L9xPBzM7QPtsfOms9g2RGNnITODbSVZq89TtD+KUf HmVAnI1CyyqWMkp/Km+vPQred6U66W6WWEXA2FI7ga2jebMqqCP32k24S85zUhhKM9Mu Ey/oGOX8T5ZnJZqzAXkmT5l/kqaoo3VAz6/yzRF9s/sJUTygz6hOpLpC7UK1SoOCMLw/ sWMSMKwJMZmFvzovrhFdYI8w4ZUTjxN99cXQq4PnqpnSFFPt4kzc5LekWhLMpYnA+3LA pnKA== X-Gm-Message-State: AOJu0YzGMxakh6iNDEXr6OqZXoaKnv6EIgdF0FGeWm/x3bSUbNfWcHT4 UCUpAYvf9qT1reujQNVTpqcoxk9siP4= X-Received: by 2002:ad4:5bc8:0:b0:64f:60ec:1102 with SMTP id t8-20020ad45bc8000000b0064f60ec1102mr1603319qvt.33.1694571129580; Tue, 12 Sep 2023 19:12:09 -0700 (PDT) Received: from localhost.localdomain (h64-35-202-119.cntcnh.broadband.dynamic.tds.net. [64.35.202.119]) by smtp.gmail.com with ESMTPSA id c8-20020a0cf2c8000000b0064f778c8165sm4016055qvm.64.2023.09.12.19.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:12:09 -0700 (PDT) From: Eric Whitney To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, Eric Whitney Subject: [PATCH 0/6] improve cluster and block removal code Date: Tue, 12 Sep 2023 22:11:42 -0400 Message-Id: <20230913021148.1181646-1-enwlinux@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 19:13:34 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email This patch series cleans up and rewrites parts of the code used to free clusters or blocks when space is removed from a file. The intent is to improve the readability, clarity, and efficiency of that code. These changes do not fix any known bugs. Eric Whitney (6): ext4: consolidate code used to free clusters ext4: rework partial cluster definition and related tracepoints ext4: rework partial cluster handling to use lblk more consistently ext4: consolidate partial cluster initialization ext4: simplify and improve efficiency of cluster removal code ext4: remove mballoc's NOFREE flags fs/ext4/ext4.h | 4 +- fs/ext4/ext4_extents.h | 19 +- fs/ext4/extents.c | 371 ++++++++++++++++++------------------ fs/ext4/mballoc.c | 25 +-- include/trace/events/ext4.h | 123 ++++++++---- 5 files changed, 287 insertions(+), 255 deletions(-) -- 2.30.2