git: 2430388070fc - stable/13 - UFS: clear fs_fmod once more, in the buffer data copy.

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 16 May 2022 22:48:22 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=2430388070fcedb3d30b8dd0e9fffacdf630dc34

commit 2430388070fcedb3d30b8dd0e9fffacdf630dc34
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-05-09 20:46:05 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-05-16 22:32:55 +0000

    UFS: clear fs_fmod once more, in the buffer data copy.
    
    PR:     263765
    
    (cherry picked from commit ca7c2d2eedf690ae0c780451f53d9ce36bb2c337)
---
 sys/ufs/ffs/ffs_vfsops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index c749ecbcded9..0666621ee515 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -2271,6 +2271,7 @@ ffs_use_bwrite(void *devfd, off_t loc, void *buf, int size)
 	bcopy((caddr_t)fs, bp->b_data, (u_int)fs->fs_sbsize);
 	UFS_UNLOCK(ump);
 	fs = (struct fs *)bp->b_data;
+	fs->fs_fmod = 0;
 	ffs_oldfscompat_write(fs, ump);
 	fs->fs_si = NULL;
 	/* Recalculate the superblock hash */