]> granicus.if.org Git - zfs/commitdiff
OpenZFS 7028 - avl_destroy_nodes supports emptying, not just destroying, an avl tree
authorEli Rosenthal <eli.rosenthal@delphix.com>
Fri, 3 Jun 2016 04:06:18 +0000 (21:06 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Aug 2017 19:08:38 +0000 (12:08 -0700)
Authored by: Eli Rosenthal <eli.rosenthal@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/7028
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/86f617e
Closes #6583

module/avl/avl.c

index 86183fea01bd6c61a11f089c0865223d147a343e..7a79f3785f91dd81771d7bb5a6f983784c52429d 100644 (file)
@@ -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:
  *