From 74ea6092d0693b6e1c6daaee0fdc79491697996c Mon Sep 17 00:00:00 2001 From: Eli Rosenthal Date: Thu, 2 Jun 2016 21:06:18 -0700 Subject: [PATCH] OpenZFS 7028 - avl_destroy_nodes supports emptying, not just destroying, an avl tree Authored by: Eli Rosenthal Reviewed by: Matthew Ahrens Reviewed by: Paul Dagnelie Reviewed by: Igor Kozhukhov Approved by: Gordon Ross Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Ported-by: Giuseppe Di Natale OpenZFS-issue: https://www.illumos.org/issues/7028 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/86f617e Closes #6583 --- module/avl/avl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/avl/avl.c b/module/avl/avl.c index 86183fea01..7a79f3785f 100644 --- a/module/avl/avl.c +++ b/module/avl/avl.c @@ -24,7 +24,8 @@ */ /* - * Copyright (c) 2014 by Delphix. All rights reserved. + * Copyright 2015 Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2015 by Delphix. All rights reserved. */ /* @@ -948,8 +949,8 @@ avl_is_empty(avl_tree_t *tree) /* * Post-order tree walk used to visit all tree nodes and destroy the tree - * in post order. This is used for destroying a tree without paying any cost - * for rebalancing it. + * in post order. This is used for removing all the nodes from a tree without + * paying any cost for rebalancing it. * * example: *