From patchwork Mon Dec 22 11:56:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1033 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=1766404627; bh=CA1kgn+3ODZmnzNUeTg4SpYSbsWDGRSkO+Hg7kHQ/uw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rm0IkBfQvSRwWPyFaEaf/yLcgqjUT56JLV1Skcsa/8GBJTkHarr/ljico2nwgokSp ZXABLuecCniZ2+FY4r2HnV+W043jnz/Y/zr6qyVl+5lXSJab8fzZwkAqp/CcuYZ2sv Z+tXSU9NJ9Sdv25jo6MRzLuX/WapU4x/EbjjjNjUzVH3HvKnuLPN7cJa+W9+9VjX18 gbNxWRT9Eg4IqQGPx3VQ07j6+C1RzWCI5muqXFhkcT8sr3oypwyuTfzV9CjmnSa8lb NZhmNpPXzuvwr4bH/OBvgCAR9NTGIGWDcGITqF1VqxMlA9gMyXW1CyVK2s3Tvf63uq t/8NV81292w6g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E73D064D62 for ; Mon, 22 Dec 2025 04:57:07 -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 KFM1bYuxe9xQ for ; Mon, 22 Dec 2025 04:57:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404627; bh=CA1kgn+3ODZmnzNUeTg4SpYSbsWDGRSkO+Hg7kHQ/uw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rm0IkBfQvSRwWPyFaEaf/yLcgqjUT56JLV1Skcsa/8GBJTkHarr/ljico2nwgokSp ZXABLuecCniZ2+FY4r2HnV+W043jnz/Y/zr6qyVl+5lXSJab8fzZwkAqp/CcuYZ2sv Z+tXSU9NJ9Sdv25jo6MRzLuX/WapU4x/EbjjjNjUzVH3HvKnuLPN7cJa+W9+9VjX18 gbNxWRT9Eg4IqQGPx3VQ07j6+C1RzWCI5muqXFhkcT8sr3oypwyuTfzV9CjmnSa8lb NZhmNpPXzuvwr4bH/OBvgCAR9NTGIGWDcGITqF1VqxMlA9gMyXW1CyVK2s3Tvf63uq t/8NV81292w6g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CF5ED64D5E for ; Mon, 22 Dec 2025 04:57:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404625; bh=2MNJcQu7GO3oi1jxJjls/YVXftWBoNjIb3M39K6V70I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EdxSUcYTcWpXfgcM1QaGYVqIamQTRGoShXA4I9pz+Mn+IpT0iVQoImoMwMbDQteRc KPW/RwwCgIRu0IMd67wEm1zVhqnhb1awVD+NNbVeqdkXdFfHsxOrQGSz+6G4jKfV1A E6VEkB/qmatSxTfSyQHU8vPhSj82JB9NnIcnMN950rJO5glKAX02Mw8kF7a8i7w5iI KoVNRoOLhI9qHG87VwDxj7vXKrHSvtJggwRb1kwL0BRULqlb4XeWXncOOf/+yLLEh8 1Ypc8czPZwH5VD6eYpOGJ9uzaWilor7TkugeHSYUHsbwKa2jpvnOtx+pb2PXI/ayGk Rsibr21XS+hcg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E314164D3E; Mon, 22 Dec 2025 04:57:05 -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 ikopQiYqrbXS; Mon, 22 Dec 2025 04:57:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404625; bh=5JTQGw5c5gDPLG+x9/0T6hS/ZTXf1OwSV3Dggm2eF8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzS/jtZI7nJP7auXkRAQfcgpCsTJP+U0NjomRJ9mbfTv3vfAaqCY/Jtw/svl7Kk0K H87ww9vjexMmmP/CJRZADgxG7HKskIPIGLzXprZl0HwN3eay5B8ijrGxj4flg5qmtF DzsG4BPwN/qZnIqXmXnJYqhko47uPk/B691lvRoBS+Jxrn++TyVZJ/crh2DmuhfnIf wczDRIz7E1anatx6tdqcrpKER21jrg02XFWAuZqNV3MlOW9FzDXrPUK7UQplOpBsIY 0vz7ywuQo90PUexU7oZ6Oc/eYf4r4a+Ugi8u180XmJagsMyi7y7+l5tk+AoVMEBrMc lT4GcmzdURQAw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7252E64C31; Mon, 22 Dec 2025 04:57:05 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 04:56:07 -0700 Message-ID: <20251222115639.700578-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251222115639.700578-1-sjg@u-boot.org> References: <20251222115639.700578-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: IH6JXONNXPKBBDOR6G46ZCH6MVDMQ6R6 X-Message-ID-Hash: IH6JXONNXPKBBDOR6G46ZCH6MVDMQ6R6 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 03/26] fs: ext4l: Add CONFIG_EXT4_JOURNAL option 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 Add a config option to control whether journal (jbd2) support is included for ext4 filesystems. This defaults to y Update fs/Makefile to conditionally include jbd2/ based on this config instead of FS_EXT4L. Signed-off-by: Simon Glass --- fs/Makefile | 2 +- fs/ext4l/Kconfig | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/fs/Makefile b/fs/Makefile index b6d4f7a9cf7..969888a81da 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -22,7 +22,7 @@ obj-$(CONFIG_CMD_CRAMFS) += cramfs/ obj-$(CONFIG_FS_EXFAT) += exfat/ obj-$(CONFIG_FS_EXT4) += ext4/ obj-$(CONFIG_FS_EXT4L) += ext4l/ -obj-$(CONFIG_FS_EXT4L) += jbd2/ +obj-$(CONFIG_EXT4_JOURNAL) += jbd2/ obj-$(CONFIG_FS_FAT) += fat/ obj-$(CONFIG_FS_JFFS2) += jffs2/ obj-$(CONFIG_SANDBOX) += sandbox/ diff --git a/fs/ext4l/Kconfig b/fs/ext4l/Kconfig index b6c2329db4a..f1fbe3b1000 100644 --- a/fs/ext4l/Kconfig +++ b/fs/ext4l/Kconfig @@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only +# +# Copyright 2025 Canonical Ltd +# Written by Simon Glass config FS_EXT4L bool "Enable ext4 filesystem support (Linux port)" @@ -8,3 +11,14 @@ config FS_EXT4L FS_EXT4 (the existing U-Boot ext4 implementation). This requires 64-bit LBA support for proper block counting. + +config EXT4_JOURNAL + bool "Enable ext4 journal support" + depends on FS_EXT4L + default y + help + This enables journal (jbd2) support for ext4 filesystems. The + journal provides crash-consistency by logging metadata changes + before committing them to the filesystem. + + If unsure, say Y.