ext4_get_inode_loc_noio() uses ext4_sb_find_get_block_nonatomic(), but the inode test fixture only stubs the atomic buffer lookup. The real lookup cannot find the fixture's synthetic inode table buffers, so it returns -EAGAIN even for the cached test buffer. ext4_sync_inode_metadata() then treats the same cache miss as success and never observes the synthetic buffer's write error. Register the existing fake-cache lookup stub for the nonatomic helper as well. Signed-off-by: Arbab Haider --- fs/ext4/inode-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ext4/inode-test.c b/fs/ext4/inode-test.c index ab1ca5982..529cab24d 100644 --- a/fs/ext4/inode-test.c +++ b/fs/ext4/inode-test.c @@ -1149,6 +1149,8 @@ static struct inode_test_ctx *inode_test_setup(struct kunit *test) inode_test_sb_getblk_stub); kunit_activate_static_stub(test, ext4_sb_find_get_block, inode_test_sb_find_get_block_stub); + kunit_activate_static_stub(test, ext4_sb_find_get_block_nonatomic, + inode_test_sb_find_get_block_stub); kunit_activate_static_stub(test, ext4_sb_getblk_unmovable, inode_test_sb_getblk_unmovable_stub); kunit_activate_static_stub(test, ext4_ext_getblk, -- 2.53.0