vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle

Reported by:	mav
This commit is contained in:
Mateusz Guzik 2021-09-18 10:13:33 +02:00
parent 0d9e99ce3b
commit 7b2ac8eb9b

View File

@ -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);