diff options
author | avg <avg@FreeBSD.org> | 2016-07-13 09:14:45 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2016-07-13 09:14:45 +0000 |
commit | d99ba5cdb7633254f62065f2bcf9bfd5f1222ace (patch) | |
tree | 62f1ce4fcb560fd7c6663bb155fef0494901fc81 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | |
parent | e6ff78ef2024cfd0d4bf5d915b327069f6ee0481 (diff) | |
download | FreeBSD-src-d99ba5cdb7633254f62065f2bcf9bfd5f1222ace.zip FreeBSD-src-d99ba5cdb7633254f62065f2bcf9bfd5f1222ace.tar.gz |
MFC r299900: zfsctl: fix several problems with reference counts
PR: 207464
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | 2 |
1 files changed, 0 insertions, 2 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 bfc767a..18717e2 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 @@ -1074,7 +1074,6 @@ zfsctl_snapdir_lookup(ap) sep->se_name = kmem_alloc(strlen(nm) + 1, KM_SLEEP); (void) strcpy(sep->se_name, nm); *vpp = sep->se_root = zfsctl_snapshot_mknode(dvp, dmu_objset_id(snap)); - VN_HOLD(*vpp); avl_insert(&sdp->sd_snaps, sep, where); dmu_objset_rele(snap, FTAG); @@ -1452,7 +1451,6 @@ zfsctl_snapshot_mknode(vnode_t *pvp, uint64_t objset) vp = gfs_dir_create(sizeof (zfsctl_node_t), pvp, pvp->v_vfsp, &zfsctl_ops_snapshot, NULL, NULL, MAXNAMELEN, NULL, NULL); - VN_HOLD(vp); zcp = vp->v_data; zcp->zc_id = objset; VOP_UNLOCK(vp, 0); |