mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01: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
(cherry picked from commit b3f4665639)
This commit is contained in:
1 parent
395d9672f5
commit
43cb7f0f48
1 file changed
+1
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user