aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSerapheim Dimitropoulos <[email protected]>2019-01-25 09:51:24 -0800
committerBrian Behlendorf <[email protected]>2019-01-25 09:51:24 -0800
commitdf72b8bebe0ebac0b20e0750984bad182cb6564a (patch)
tree334bf52d46f81d5b71c754c0b7b02e896c00afd9 /include
parent107dd2b1748bc4c15e5e5fa7342cfc4e61bce4ee (diff)
Rename range_tree_verify to range_tree_verify_not_present
The range_tree_verify function looks for a segment in a range tree and panics if the segment is present on the tree. This patch gives the function a more descriptive name. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes #8327
Diffstat (limited to 'include')
-rw-r--r--include/sys/range_tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/range_tree.h b/include/sys/range_tree.h
index 7f79786f5..ae1a0c323 100644
--- a/include/sys/range_tree.h
+++ b/include/sys/range_tree.h
@@ -89,12 +89,13 @@ range_tree_t *range_tree_create_impl(range_tree_ops_t *ops, void *arg,
range_tree_t *range_tree_create(range_tree_ops_t *ops, void *arg);
void range_tree_destroy(range_tree_t *rt);
boolean_t range_tree_contains(range_tree_t *rt, uint64_t start, uint64_t size);
+void range_tree_verify_not_present(range_tree_t *rt,
+ uint64_t start, uint64_t size);
range_seg_t *range_tree_find(range_tree_t *rt, uint64_t start, uint64_t size);
void range_tree_resize_segment(range_tree_t *rt, range_seg_t *rs,
uint64_t newstart, uint64_t newsize);
uint64_t range_tree_space(range_tree_t *rt);
boolean_t range_tree_is_empty(range_tree_t *rt);
-void range_tree_verify(range_tree_t *rt, uint64_t start, uint64_t size);
void range_tree_swap(range_tree_t **rtsrc, range_tree_t **rtdst);
void range_tree_stat_verify(range_tree_t *rt);
uint64_t range_tree_min(range_tree_t *rt);