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; -- 2.43.0