aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2019-08-31 13:24:22 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2019-08-31 13:24:22 +0000
commite9fff745a7e25ec2722634b020b207938d22f350 (patch)
tree5b0135823ba90f2f5c6aa2fdc395b02744dbe68c
parente30a1788fa9ead2e13b301f13948fcfabb04c915 (diff)
downloadsrc-e9fff745a7e25ec2722634b020b207938d22f350.tar.gz
src-e9fff745a7e25ec2722634b020b207938d22f350.zip
zfs: fix snapshot dir destruction after introducion of VOP_NEED_INACTIVE
Reported by: lwhsu PR: 240221 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=351642
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
index 381dd75f2d0c..16cc37505354 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
@@ -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,