Invalidate inode extents cache on truncation.

It is needed to invalidate cache in case of inode space removal
to avoid situation, when extents cache returns not exist extent.

Reviewed by:    pfg
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D29931

(cherry picked from commit b3f4665639)
This commit is contained in:
Fedor Uporov authored and Ed Maste committed 2026-06-24 13:56:47 -04:00
1 parent 395d9672f5
commit 43cb7f0f48
1 file changed
+1
+1
View File
@@ -1579,5 +1579,6 @@ ext4_ext_remove_space(struct inode *ip, off_t length, int flags,
ext4_ext_drop_refs(path);
free(path, M_EXT2EXTENTS);
ip->i_ext_cache.ec_type = EXT4_EXT_CACHE_NO;
return (error);
}