zfs: fix snapshot dir destruction after introducion of VOP_NEED_INACTIVE

Reported by:	lwhsu
PR:		240221
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mateusz Guzik 2019-08-31 13:24:22 +00:00
parent e30a1788fa
commit e9fff745a7

View File

@ -1247,6 +1247,7 @@ zfsctl_snapshot_vptocnp(struct vop_vptocnp_args *ap)
static struct vop_vector zfsctl_ops_snapshot = {
.vop_default = NULL, /* ensure very restricted access */
.vop_inactive = zfsctl_snapshot_inactive,
.vop_need_inactive = vop_stdneed_inactive,
.vop_reclaim = zfsctl_snapshot_reclaim,
.vop_vptocnp = zfsctl_snapshot_vptocnp,
.vop_lock1 = vop_stdlock,