aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-01-21 23:20:14 +0000
committerBrian Behlendorf <[email protected]>2021-01-24 16:06:02 -0800
commit7930a5ee65e9cd47c97bdfdc78d2a1f76fed2933 (patch)
tree3e247a0eb7a21e4f920a88415af706daa4964564 /module/os
parentbe94a3de0f7094a296e417bc6e336e694accd753 (diff)
FreeBSD: upstream changes to VFS interface
Set VIRF_MOUNTPOINT flag on snapshot mountpoint. Authored-by: Mateusz Guzik <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11458
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/spl/spl_vfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/os/freebsd/spl/spl_vfs.c b/module/os/freebsd/spl/spl_vfs.c
index 991a11fe2..09c840126 100644
--- a/module/os/freebsd/spl/spl_vfs.c
+++ b/module/os/freebsd/spl/spl_vfs.c
@@ -240,9 +240,11 @@ mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath,
#endif
VI_LOCK(vp);
vp->v_iflag &= ~VI_MOUNT;
- VI_UNLOCK(vp);
-
+#ifdef VIRF_MOUNTPOINT
+ vn_irflag_set_locked(vp, VIRF_MOUNTPOINT);
+#endif
vp->v_mountedhere = mp;
+ VI_UNLOCK(vp);
/* Put the new filesystem on the mount list. */
mtx_lock(&mountlist_mtx);
TAILQ_INSERT_TAIL(&mountlist, mp, mnt_list);