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
This commit is contained in:
Konstantin Belousov 2021-02-17 14:35:56 +02:00
parent 2bfd8992c7
commit 8b7239681e

View File

@ -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);
}