mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Remove dead code from AVL tree
The avl_update_* functions are never used by ZFS and are therefore being removed. They're barely even used in Illumos. Additionally, simplify avl_add() by using a VERIFY which produces exactly the same behavior under Linux. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #6716
This commit is contained in:
@@ -259,17 +259,6 @@ extern void avl_add(avl_tree_t *tree, void *node);
|
||||
*/
|
||||
extern void avl_remove(avl_tree_t *tree, void *node);
|
||||
|
||||
/*
|
||||
* Reinsert a node only if its order has changed relative to its nearest
|
||||
* neighbors. To optimize performance avl_update_lt() checks only the previous
|
||||
* node and avl_update_gt() checks only the next node. Use avl_update_lt() and
|
||||
* avl_update_gt() only if you know the direction in which the order of the
|
||||
* node may change.
|
||||
*/
|
||||
extern boolean_t avl_update(avl_tree_t *, void *);
|
||||
extern boolean_t avl_update_lt(avl_tree_t *, void *);
|
||||
extern boolean_t avl_update_gt(avl_tree_t *, void *);
|
||||
|
||||
/*
|
||||
* Swaps the contents of the two trees.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user