MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zfs_btree_first

Function zfs_btree_first

freebsd/contrib/openzfs/module/zfs/btree.c:1071–1079  ·  view source on GitHub ↗

* Return the first element in the tree, and put its location in where if * non-null. */

Source from the content-addressed store, hash-verified

1069 * non-null.
1070 */
1071void *
1072zfs_btree_first(zfs_btree_t *tree, zfs_btree_index_t *where)
1073{
1074 if (tree->bt_height == -1) {
1075 ASSERT0(tree->bt_num_elems);
1076 return (NULL);
1077 }
1078 return (zfs_btree_first_helper(tree->bt_root, where));
1079}
1080
1081/*
1082 * Find the last element in the subtree rooted at hdr, return its value and

Callers 15

vdev_rebuild_rangesFunction · 0.85
vdev_initialize_rangesFunction · 0.85
range_tree_stat_verifyFunction · 0.85
range_tree_walkFunction · 0.85
range_tree_firstFunction · 0.85
range_tree_minFunction · 0.85
zfs_btree_destroy_nodesFunction · 0.85
vdev_trim_rangesFunction · 0.85
space_map_write_implFunction · 0.85

Calls 1

zfs_btree_first_helperFunction · 0.85

Tested by 3

verify_contentsFunction · 0.68
verify_nodeFunction · 0.68
drain_treeFunction · 0.68