| Message ID | 20251222115639.700578-15-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1766404650; bh=Y/r0xAaPjyLNj41asXVIRFd170v+pOua1YbinRLtdxs=; 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=W9GrRw1VNfa2AOcFKDvUp/Ed/RXlwqyakJKI7hoPh1z9zfNLw2684nEMb1ZxV5rtk qHsgkh2NYQtPgHu5BLKKWAcpHzDIU8JXfOA7t+/rIiWCDCi5OQUfY96Bjq0aLJgZrP g1fq2El/HWnc3JOEs0Rr6lZxQjrmg7z/HLLorkebkLvw40V3xj3znp7HwMKG7NN44D 3ZpVgOTqgnmeWToFdtK4vNOmn+hd9KdmAY/zqfMP4TMD6RfW1wLG6F+kMgiz/4jtOH kGM1oJ178pmmLKrtNE7n9ocppE8+gwuQrL9y41Dpttd+CbF3I1Xt3B6HTKIOEC/fLK VtKiXlQs1suGw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8AC9C64D70 for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:30 -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 QSoo6fJlGFur for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:30 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404649; bh=Y/r0xAaPjyLNj41asXVIRFd170v+pOua1YbinRLtdxs=; 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=bS9utN6iSkkCVmJqkcnY6YBQp2najXAk6zhW5h9aZh8MqfInYfPs5OVwjp4Da01dQ jZfqpNInu3jV17Dtcuc5ZtJqAVjExAgluAVn4BRzJDgE/jI2fSuZUvaEO3hegpj0MH IQNroK6fFmiCRKYS3RBSyidd7ui8IDjHy2d1zm/FYa6KSrn7Bd2YDe2rV0zePL69ru fGGXYy/TuuTLAnbeRr3vorkWNQ+6/qlQ8xZt+ftNMDiETHiXcJTzCpfUq1tExoVRaS MYKBNamVbVtYHTlf4TPeprffpmuniXRTQqGroIf5Pc7MdKqNRorDOvmVriMg79GGt6 Ncn+/9k8R/lUQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5FD8664D85 for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:29 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404646; bh=mSVLUIGY6F3JQWtavNl7e6y4rWT1J7STRk3KVN+3wfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iIvy9Z4txRLlXTbUBuLU6BANJZiynS6cKdxWUZYAZ6a96NA/HjGDdOhIjTkR/BRY4 7y+hLKgvzUXX+CMwx9Sm5+o8z52jM3/KQ9mpj1hfS0VKHgToyT4aXo99tHwiYeDHX6 nn//tZ1b6trrPBbw//wXuMYOFjcBmJy+jDyPvYL0e6zlrrQ4Zmu+6Uh0/NZuqPtp6b wdjocYCYpNR2+mHHEw6bNaDKqojOxWEYDrEJT6xZMdZrGue4sYakX4OYwHZDoMFM8n ApRbJmRIdbF1Wh0YeG6r1OA288m2dglRxOsUx2AsunHFGpIWBdUnC4tDXHFXdvxcs+ p9Qcnlit2eljw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 110745FB5A; Mon, 22 Dec 2025 04:57:26 -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 3k8Pvj8Iok8j; Mon, 22 Dec 2025 04:57:25 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404645; bh=nq3SaXofVMjuzDOyr6mXMuYbewLFQh1m3YB0iZEHD/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RME+x/zHiZiorf03fd8orrOsq5JD33hfOHzloJFjDtiILMe6eP3zIZ70/geocz2q4 xf8MdnDGnNJ7U+oazpB8r0OUVSTrkjx0DqaMhid8y9UASAEnOIaOfrDzcxh093AEo/ 0+Qdns7Z2qq6Pa1pAM1G0qT2t+koliOgEOVwvQyrIAld5pzQ2NUBYrRa47YhQx5rUb 6Y7KA9YYCcgMtq9kgdClH2PuAJrq0r1Tk2WWzVJTuxlWKFDuTaXD/mps00nENeFUs5 lsuj3RfvW7H2xjl3/zSsAT0m659T3X+UBbu824VPgfxXRu554uVrPdNGmkY/C3h4Ot lasfs1hZye60A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7AB1D64C31; Mon, 22 Dec 2025 04:57:25 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 22 Dec 2025 04:56:18 -0700 Message-ID: <20251222115639.700578-15-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: YVSHB6QTMMJEKHO5KNMA2TSHUSEJKVM2 X-Message-ID-Hash: YVSHB6QTMMJEKHO5KNMA2TSHUSEJKVM2 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 <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/26] fs: ext4l: Initialise extent status cache List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/YVSHB6QTMMJEKHO5KNMA2TSHUSEJKVM2/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
fs: ext4l: Add support for mounting ext4 filesystems (part G)
|
|
Commit Message
Simon Glass
Dec. 22, 2025, 11:56 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> Add ext4_init_es() call to initialise the extent status cache. This is needed for ext4 to track the status of extents in memory. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4.h | 2 ++ fs/ext4l/interface.c | 5 +++++ 2 files changed, 7 insertions(+)
diff --git a/fs/ext4l/ext4.h b/fs/ext4l/ext4.h index 836ea2612b9..8fed7194d84 100644 --- a/fs/ext4l/ext4.h +++ b/fs/ext4l/ext4.h @@ -2960,6 +2960,8 @@ extern ext4_fsblk_t ext4_mb_new_blocks(handle_t *, extern void ext4_discard_preallocations(struct inode *); extern int __init ext4_init_mballoc(void); extern void ext4_exit_mballoc(void); +extern int __init ext4_init_es(void); +extern void ext4_exit_es(void); extern ext4_group_t ext4_mb_prefetch(struct super_block *sb, ext4_group_t group, unsigned int nr, int *cnt); diff --git a/fs/ext4l/interface.c b/fs/ext4l/interface.c index ca71843b58e..c18ed306f1f 100644 --- a/fs/ext4l/interface.c +++ b/fs/ext4l/interface.c @@ -48,6 +48,11 @@ int ext4l_probe(struct blk_desc *fs_dev_desc, return ret; } + /* Initialise extent status cache */ + ret = ext4_init_es(); + if (ret) + return ret; + buf = malloc(BLOCK_SIZE + 512); if (!buf) return -ENOMEM;