diff options
author | delphij <delphij@FreeBSD.org> | 2014-07-29 05:41:54 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-07-29 05:41:54 +0000 |
commit | 12df8077a6be5397f6d806d09abb9004c3723694 (patch) | |
tree | d260c6ca4f07358a8919b3eb8bfe4b689674c756 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c | |
parent | 24c4578f549b48235d30174a4b91f31620ea264f (diff) | |
download | FreeBSD-src-12df8077a6be5397f6d806d09abb9004c3723694.zip FreeBSD-src-12df8077a6be5397f6d806d09abb9004c3723694.tar.gz |
MFC r268713: MFV r268702:
Add missing *_destroy() calls in various places with ZFS.
Illumos issue:
4975 missing mutex_destroy() calls in zfs
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c index ffcf524..6efbffd 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c @@ -1083,6 +1083,11 @@ dnode_hold_impl(objset_t *os, uint64_t object, int flag, } if (winner = dmu_buf_set_user(&db->db, children_dnodes, NULL, dnode_buf_pageout)) { + + for (i = 0; i < epb; i++) { + zrl_destroy(&dnh[i].dnh_zrlock); + } + kmem_free(children_dnodes, sizeof (dnode_children_t) + (epb - 1) * sizeof (dnode_handle_t)); children_dnodes = winner; |