aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2023-04-20 08:59:38 +0000
committerBrian Behlendorf <[email protected]>2023-04-26 09:16:09 -0700
commit88b8777159f69237ca59b31e8c246c567e836c68 (patch)
treeea9dcaedbc3fd351e22940ebd0d10dd5eaa6ce13 /module/os
parentb69cb06664ad74f5907f3a6675657b7d4b3daa44 (diff)
FreeBSD: add missing vn state transition for .zfs
Signed-off-by: Mateusz Guzik <[email protected]> Closes #14774
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/zfs/zfs_ctldir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c
index d00efa44f..8ba5e0b24 100644
--- a/module/os/freebsd/zfs/zfs_ctldir.c
+++ b/module/os/freebsd/zfs/zfs_ctldir.c
@@ -204,6 +204,10 @@ sfs_vgetx(struct mount *mp, int flags, uint64_t parent_id, uint64_t id,
return (error);
}
+#if __FreeBSD_version >= 1400077
+ vn_set_state(vp, VSTATE_CONSTRUCTED);
+#endif
+
*vpp = vp;
return (0);
}