The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=07f2436080bf78fb9198d9a34bdbd3cd978478c0
commit 07f2436080bf78fb9198d9a34bdbd3cd978478c0 Author: Konstantin Belousov <[email protected]> AuthorDate: 2026-11-18 01:42:13 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-12-04 19:23:04 +0000 mntfs: store the owning mount point in the v_data of the mntfs vnode (cherry picked from commit e72d3b0dc00ed8181dad11f74dc417d2a41d3619) --- sys/fs/mntfs/mntfs_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/fs/mntfs/mntfs_vnops.c b/sys/fs/mntfs/mntfs_vnops.c index edb1e8d407ae..45c429c34c07 100644 --- a/sys/fs/mntfs/mntfs_vnops.c +++ b/sys/fs/mntfs/mntfs_vnops.c @@ -46,6 +46,7 @@ mntfs_reclaim(struct vop_reclaim_args *ap) { struct vnode *vp = ap->a_vp; + vp->v_data = NULL; dev_rel(vp->v_rdev); return (0); } @@ -77,7 +78,7 @@ mntfs_allocvp(struct mount *mp, struct vnode *ovp) getnewvnode("mntfs", mp, &mntfs_vnodeops, &vp); vp->v_type = VCHR; - vp->v_data = NULL; + vp->v_data = mp; dev_ref(dev); vp->v_rdev = dev;
