aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-09-18 08:13:33 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-09-18 19:13:51 +0000
commit7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae (patch)
tree91c4904a7cbcf97e0902c0ee12a799a31c9417c8 /sys
parent0d9e99ce3b1071c76ff5a2d9d4158341c0371c2f (diff)
downloadsrc-7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae.tar.gz
src-7b2ac8eb9be76c96356b6e9a7c06a8080ea841ae.zip
vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle
Reported by: mav
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_mountroot.c1
1 files changed, 1 insertions, 0 deletions
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);