]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ext4: fix extents-test.c is not compiled when EXT4_KUNIT_TESTS=M
authorYe Bin <yebin10@huawei.com>
Sat, 14 Mar 2026 07:52:58 +0000 (15:52 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 28 Mar 2026 03:36:06 +0000 (23:36 -0400)
commit9e1b14320b154094bb2c1bee6d8c6cb851fc3215
treec68ab635a8160edf98d18cf580e95c3bf9880af7
parent519b76ac0b31d86b45784735d4ef964e8efdc56b
ext4: fix extents-test.c is not compiled when EXT4_KUNIT_TESTS=M

Now, only EXT4_KUNIT_TESTS=Y testcase will be compiled in 'extents.c'.
To solve this issue, the ext4 test code needs to be decoupled. The
'extents-test' module is compiled into 'ext4-test' module.

Fixes: cb1e0c1d1fad ("ext4: kunit tests for extent splitting and conversion")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260314075258.1317579-4-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/Makefile
fs/ext4/ext4_extents.h
fs/ext4/extents-test.c
fs/ext4/extents.c