The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8b7239681e27ab75175c45c48e6ad1685571b1f2

commit 8b7239681e27ab75175c45c48e6ad1685571b1f2
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2021-02-17 12:35:56 +0000
Commit:     Konstantin Belousov <k...@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);
 }
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to