Lines Matching defs:rm_hdr
1423 * Remove the rm_hdr and the separator to its left from the parent node. The
1424 * buffer that rm_hdr was stored in may already be freed, so its contents
1429 zfs_btree_hdr_t *rm_hdr)
1435 * If the node is the root node and rm_hdr is one of two children,
1441 ASSERT3P(node->btc_children[1], ==, rm_hdr);
1451 if (node->btc_children[idx] == rm_hdr)
1463 * Shift the element and children to the right of rm_hdr to
1535 * Shift elements in node left by one spot to overwrite rm_hdr
1625 * Shift the element and children to the right of rm_hdr to
1628 ASSERT3P(keep->btc_children[new_idx], ==, rm_hdr);
1640 ASSERT3P(keep->btc_children[i], !=, rm_hdr);
1812 zfs_btree_hdr_t *rm_hdr, *k_hdr;
1815 rm_hdr = hdr;
1819 rm_hdr = r_hdr;
1823 ASSERT(!zfs_btree_is_core(rm_hdr));
1825 ASSERT3U(rm_hdr->bth_count, ==, min_count);
1827 zfs_btree_leaf_t *rm = (zfs_btree_leaf_t *)rm_hdr;
1830 for (uint32_t i = 0; i < rm_hdr->bth_count + 1; i++) {
1844 bt_grow_leaf(tree, keep, k_count, 1 + rm_hdr->bth_count);
1853 bt_transfer_leaf(tree, rm, 0, rm_hdr->bth_count, keep, k_count + 1);
1856 zfs_btree_remove_from_node(tree, parent, rm_hdr);
1857 zfs_btree_node_destroy(tree, rm_hdr);