Files
u-boot/fs/ext4l
Simon Glass 7b1fd66e98 ext4l: Add safeguard to close previous mount in probe
When running multiple filesystem tests in sequence, probe may be called
without an explicit close of the previous mount. The old device may have
been rebound to a different file, making I/O to it invalid.

Add a new ext4l_close_internal() function with a skip_io parameter to
handle this case. When skip_io is true, it skips journal-destroy
entirely since the device may be invalid. It will be recovered on next
mount.

Also call the ext4- and JBD2- cleanup functions to properly reset the
global state for subsequent mounts: ext4_exit_system_zone(),
ext4_exit_es(), ext4_exit_mballoc(), and jbd2_journal_exit_global()

This ensures the caches are destroyed, thus freeing all orphaned
journal_heads, even when skip_io is true.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2026-01-01 17:13:59 -07:00
..
2025-12-16 13:19:59 +00:00
2025-12-16 13:19:59 +00:00
2026-01-01 17:13:55 -07:00
2025-12-21 11:36:34 +00:00
2025-12-21 14:15:36 -07:00
2025-12-21 11:36:34 +00:00
2025-12-21 11:36:34 +00:00
2025-12-20 14:09:14 -07:00
2026-01-01 17:13:59 -07:00
2025-12-21 14:15:36 -07:00
2025-12-21 14:15:36 -07:00
2025-12-21 11:36:34 +00:00
2025-12-21 11:36:34 +00:00
2025-12-21 14:15:36 -07:00
2026-01-01 17:13:55 -07:00
2025-12-21 11:36:34 +00:00
2025-12-16 13:19:59 +00:00
2025-12-20 14:09:14 -07:00
2025-12-21 11:36:34 +00:00
2025-12-16 13:19:59 +00:00