Lines Matching defs:keep_count
718 uint32_t keep_count = BTREE_CORE_ELEMS - move_count - 1;
729 par_hdr->bth_count = keep_count;
731 bt_transfer_core(tree, parent, keep_count + 1, move_count, new_parent,
736 bcpy(parent->btc_elems + keep_count * size, tmp_buf,
740 if (offset < keep_count) {
749 } else if (offset > keep_count) {
753 offset - keep_count - 1, new_node, buf);
842 uint32_t keep_count = capacity - move_count - 1;
843 ASSERT3U(keep_count, >=, 1);
845 if (idx < keep_count) {
846 keep_count--;
854 (idx >= keep_count && idx <= keep_count + move_count / 2);
862 bt_transfer_leaf(tree, leaf, keep_count + 1, move_count, new_leaf, 0);
866 bcpy(leaf->btl_elems + (leaf->btl_hdr.bth_first + keep_count) * size,
869 bt_shrink_leaf(tree, leaf, keep_count, 1 + move_count);
871 if (idx < keep_count) {
874 } else if (idx > keep_count) {
876 zfs_btree_insert_leaf_impl(tree, new_leaf, idx - keep_count -