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:
parent
2bfd8992c7
commit
8b7239681e
@ -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);
|
error = ext2_ext_truncate(vp, length, flags, cred, td);
|
||||||
else
|
else
|
||||||
error = ext2_ind_truncate(vp, length, flags, cred, td);
|
error = ext2_ind_truncate(vp, length, flags, cred, td);
|
||||||
|
cluster_init_vn(&ip->i_clusterw);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user