mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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
This commit is contained in:
1 parent
5679656e09
commit
b3f4665639
1 file changed
+1
@@ -1623,5 +1623,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);
|
||||
}
|
||||
Reference in new issue
Block a user