Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 2021 11:14:53 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8b7239681e27 - main - ext2fs: clear write cluster tracking on truncation
Message-ID:  <202102211114.11LBErxP005036@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

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

commit 8b7239681e27ab75175c45c48e6ad1685571b1f2
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-02-17 12:35:56 +0000
Commit:     Konstantin Belousov <kib@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102211114.11LBErxP005036>