diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2026-11-11 16:24:16 +0000 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-11-23 15:29:16 -0500 |
| commit | 00ab256f98e3a6f313b9ecc6da510f90604fd9e1 (patch) | |
| tree | f500ee6a5cec30aa7d6c35d20ae9781f8abec0ab /scripts/basic | |
| parent | c70aa271b595f9381f3a1bc8198b4bd24a64a83b (diff) | |
ext4: add KUnit tests for fs/ext4/migrate.c
Add the ext4_migrate_test KUnit suite in fs/ext4/migrate-test.c to test
online inode format migration between indirect block maps and extent
trees in fs/ext4/migrate.c:
- ext4_ext_migrate() precondition guards, fast symlink no-op handling,
and temporary inode allocation error propagation
- direct and single-indirect physically contiguous block coalescing,
sparse logical hole preservation, and indirect metadata freeing
- double-indirect and triple-indirect tree traversal and multi-level
extent tree construction with proper i_csum_seed propagation
- error rollback freeing allocated temporary extent tree blocks while
preserving the original indirect inode layout
- ext4_ext_swap_inode_data() concurrent block allocation detection via
EXT4_STATE_EXT_MIGRATE (-EAGAIN)
- ext4_ind_migrate() conversion of empty and single-extent inodes back
to direct block maps and rejection of unsupported layouts
Export ext4_ext_migrate(), ext4_ind_migrate(), and a KUnit wrapper for
ext4_ext_swap_inode_data() via EXPORT_SYMBOL_FOR_EXT4_TEST.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
