Skip to content

Commit

Permalink
FreeBSD: add missing vn state transition for .zfs
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Guzik <[email protected]>
Closes #14774
  • Loading branch information
mjguzik authored and behlendorf committed May 30, 2023
1 parent aef1324 commit 092021b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/os/freebsd/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 092021b

Please sign in to comment.