OpenZFS 7028 - avl_destroy_nodes supports emptying, not just destroying, an avl tree
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
This commit is contained in:
parent
de327eccbb
commit
74ea6092d0
|
@ -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
|
* 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
|
* in post order. This is used for removing all the nodes from a tree without
|
||||||
* for rebalancing it.
|
* paying any cost for rebalancing it.
|
||||||
*
|
*
|
||||||
* example:
|
* example:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue