git: 8b7239681e27 - main - ext2fs: clear write cluster tracking on truncation
Konstantin Belousov
kib at FreeBSD.org
Sun Feb 21 11:14:56 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=8b7239681e27ab75175c45c48e6ad1685571b1f2
commit 8b7239681e27ab75175c45c48e6ad1685571b1f2
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-02-17 12:35:56 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-02-21 09:38:21 +0000
ext2fs: clear write cluster tracking on truncation
Reviewed by: fsu, mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28679
---
sys/fs/ext2fs/ext2_inode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/fs/ext2fs/ext2_inode.c b/sys/fs/ext2fs/ext2_inode.c
index 1e7584ebaa66..34c32f2f113d 100644
--- a/sys/fs/ext2fs/ext2_inode.c
+++ b/sys/fs/ext2fs/ext2_inode.c
@@ -581,6 +581,7 @@ ext2_truncate(struct vnode *vp, off_t length, int flags, struct ucred *cred,
error = ext2_ext_truncate(vp, length, flags, cred, td);
else
error = ext2_ind_truncate(vp, length, flags, cred, td);
+ cluster_init_vn(&ip->i_clusterw);
return (error);
}
More information about the dev-commits-src-all
mailing list