]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ext4: call deactivate_super() in extents_kunit_exit()
authorYe Bin <yebin10@huawei.com>
Mon, 30 Mar 2026 13:30:32 +0000 (21:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2026 02:04:32 +0000 (22:04 -0400)
Call deactivate_super() is called in extents_kunit_exit() to cleanup
the file system resource.

Fixes: cb1e0c1d1fad ("ext4: kunit tests for extent splitting and conversion")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/20260330133035.287842-3-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents-test.c

index 82c59291e0458ce7f757ca99120a423ee978300c..3d4663d99eb13c0d578c96797c850dd7d8b56562 100644 (file)
@@ -146,6 +146,7 @@ static void extents_kunit_exit(struct kunit *test)
        struct ext4_sb_info *sbi = sb->s_fs_info;
 
        ext4_es_unregister_shrinker(sbi);
+       deactivate_super(sbi->s_sb);
        kfree(sbi);
        kfree(k_ctx.k_ei);
        kfree(k_ctx.k_data);