From patchwork Wed Jan 7 23:44:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 91 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767829489; bh=CnasYqD6VDKDh+fIG/ocghPw5F0FvcBazgxtB4cYAto=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=oeEZAHuk5/DeiMKlpj74ucSqZdYUBCu2DF69JV6PCuiLARhi6urpvfhJP3G/uNv32 NxO3tVm1bozMS1t/whCc2y86i5fo+Y2IBc0i9APoybPkVvE0cRCeh6j2cgQTE20jPx 4BGgfy2JgrpwqKgxKu7nDUp3iayRyxUPSZrtJ2OZrqdmKfzxciTbKTJKFYKSK9tYXv kkxmyHqbA5YmqcIEkmlPT6iFbe2oU62r34ORmH1yTVfTP7AyMd5+v4zIDcDcRNmgxL Y0oa3Xyii8MqEhmciXnT+ymZTpWNYRoVvVEL/ixhr3Ff+Mn1VjSLn0BRHFbS0N1Nn0 kCLg2H0N5E1FA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 70F9D6919E for ; Wed, 7 Jan 2026 16:44:49 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2YMRO98t5P5o for ; Wed, 7 Jan 2026 16:44:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767829489; bh=CnasYqD6VDKDh+fIG/ocghPw5F0FvcBazgxtB4cYAto=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=oeEZAHuk5/DeiMKlpj74ucSqZdYUBCu2DF69JV6PCuiLARhi6urpvfhJP3G/uNv32 NxO3tVm1bozMS1t/whCc2y86i5fo+Y2IBc0i9APoybPkVvE0cRCeh6j2cgQTE20jPx 4BGgfy2JgrpwqKgxKu7nDUp3iayRyxUPSZrtJ2OZrqdmKfzxciTbKTJKFYKSK9tYXv kkxmyHqbA5YmqcIEkmlPT6iFbe2oU62r34ORmH1yTVfTP7AyMd5+v4zIDcDcRNmgxL Y0oa3Xyii8MqEhmciXnT+ymZTpWNYRoVvVEL/ixhr3Ff+Mn1VjSLn0BRHFbS0N1Nn0 kCLg2H0N5E1FA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5D5986919D for ; Wed, 7 Jan 2026 16:44:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767829487; bh=yGbWgsIPwyLcqy1xwadJ8o9Ogy85WMfivtfLk/o6dX0=; h=From:To:Cc:Subject:Date:From; b=DTQu1RLfeigxyC8giX34IbR0DzOC0FcVyMrindLquKwD9DI7Dy5qfdVHTMxyemKcC 3uk6E6IJ1GWDTzLDNwA/U076rZZ249svG73vWl0nlfKrzEmDaGAWjfrAeWl94MMgOB yprXscSFE8p41T10OErqiG/dCpDJq84MG+xWqD9WGIyxgMNZxw4vTYjV+tJYiRnro0 Y2lPMLPGrMGZugiTUP12a1y076Sc1FD7RMNM/Vi44ozfbBokZpa/fwfXX8MF3+FBWo i75lE/LjZMtvoObJBWAAH5n5As8uyfYQyVP3Q5DtTSp1HjOP7Nf+6MXGevsJy8k/yy NXFeqxREfKaeQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7A4EB69195; Wed, 7 Jan 2026 16:44:47 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id dQQX4gfbmkBj; Wed, 7 Jan 2026 16:44:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767829483; bh=+Z4m4CNUwet18jLym5aA1N4j6a2OXRLNOeyMvf6OCx0=; h=From:To:Cc:Subject:Date:From; b=ZHuuUfF3Ec14LxxGJvbH6HvYOW/7XgRXWEXtqJk736Jgcrsog7tpJZtKuYFXUfXBO cXR4I7ooKX4e+aSbkO25b7nmxhBpfZ2hXRk7rbIoZl55rm+n9WNkzgmpXEzPvwRTPo lyjq2QJR//f7uzigD/Gv4OJcnQFjq1GjIKCh/ou4NeNmXodZgkAfvUwLkJWS0QEUoC 9aZpJ2JXU0WGk8wvJ8lYCqsCt0Q38RoyNrLgq1XxKoQVFf3qFfJckEf0AKcubQU802 1USiO8DFdV5SAjNjKM9oOl72bfOSq18HDYn1GJA3f7vLh1usrrBZ7iIsTKPVvLdfYv E5YKsRserTdNg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 284D6690E5; Wed, 7 Jan 2026 16:44:43 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 7 Jan 2026 16:44:10 -0700 Message-ID: <20260107234426.3508161-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: P5OFK6ZNUDIK3NY3VQ6XBD6A7WDSTDXN X-Message-ID-Hash: P5OFK6ZNUDIK3NY3VQ6XBD6A7WDSTDXN X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 0/9] Align ext4l with Linux kernel v6.19 implementation List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series continues aligning ext4l with the Linux kernel ext4 code. It adds helper macros for block/page conversions, folio operations, and inode state accessors, then uses them throughout the codebase. Several files are updated to match Linux more closely, reducing the diff when comparing against upstream. This makes future syncs easier and improves code consistency. Simon Glass (9): fs: ext4l: Add inode state accessor functions fs: ext4l: Add block conversion macros and use them fs: ext4l: Add m_seq field to ext4_map_blocks struct fs: ext4l: Add folio helper macros fs: ext4l: Align verity.c, symlink.c and hash.c with Linux fs: ext4l: Use EXT4_MAX_ORPHAN_FILE_BLOCKS in orphan.c fs: ext4l: Align ialloc.c, inode.c et al with Linux fs: ext4l: Rename EXT4_GET_BLOCKS_PRE_IO flag fs: ext4l: Use conversion macros in inode.c fs/ext4l/ext4.h | 27 +++++++++++--- fs/ext4l/ext4_uboot.h | 60 ++++++++++++++++++++++++++++++ fs/ext4l/extents.c | 20 +++++----- fs/ext4l/extents_status.c | 2 +- fs/ext4l/extents_status.h | 2 +- fs/ext4l/hash.c | 2 +- fs/ext4l/ialloc.c | 1 - fs/ext4l/inode.c | 77 +++++++++++++++++---------------------- fs/ext4l/ioctl.c | 4 ++ fs/ext4l/orphan.c | 8 ++-- fs/ext4l/readpage.c | 7 +--- fs/ext4l/verity.c | 2 +- fs/ext4l/xattr.c | 6 ++- 13 files changed, 146 insertions(+), 72 deletions(-)