FreeBSD: add missing vn state transition for .zfs

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #14774
This commit is contained in:
Mateusz Guzik 2023-04-20 08:59:38 +00:00 committed by Brian Behlendorf
parent b69cb06664
commit 88b8777159

View File

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