Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2021 19:15:28 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7b2ac8eb9be7 - main - vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle
Message-ID:  <202109181915.18IJFSwE084539@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae

commit 7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-09-18 08:13:33 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-09-18 19:13:51 +0000

    vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle
    
    Reported by:    mav
---
 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 5cf222901420..54d5a442c9ee 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);



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