git: 3bf887780215 - stable/13 - vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Mon, 11 Oct 2021 09:15:48 UTC
The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=3bf887780215223a4a15a7e8207504aa1112acca

commit 3bf887780215223a4a15a7e8207504aa1112acca
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-09-18 08:13:33 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-10-11 09:10:20 +0000

    vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle
    
    Reported by:    mav
    
    (cherry picked from commit 7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae)
---
 sys/kern/vfs_mountroot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index 7adf63db2dac..9a3895b6f830 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -369,6 +369,7 @@ vfs_mountroot_shuffle(struct thread *td, struct mount *mpdevfs)
 				cache_purge(vp);
 				VI_LOCK(vp);
 				mporoot->mnt_vnodecovered = vp;
+				vn_irflag_set_locked(vp, VIRF_MOUNTPOINT);
 				vp->v_mountedhere = mporoot;
 				strlcpy(mporoot->mnt_stat.f_mntonname,
 				    fspath, MNAMELEN);