git: 7ff314380919 - main - zfs: add missing vn state transition for .zfs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Apr 2023 08:10:29 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=7ff314380919d5b7c4b45e68fd093a51a998f845 commit 7ff314380919d5b7c4b45e68fd093a51a998f845 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2023-04-20 08:09:59 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2023-04-20 08:09:59 +0000 zfs: add missing vn state transition for .zfs Reported by: des --- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c index d00efa44f2bc..8ba5e0b242a2 100644 --- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c +++ b/sys/contrib/openzfs/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); }