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 <mjguzik@gmail.com>
Closes openzfs#14774
  • Loading branch information
mjguzik authored and behlendorf committed May 26, 2023
1 parent 2b486ae commit d9014b7
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 d9014b7

Please sign in to comment.