Lines Matching refs:move_count
716 uint32_t move_count = MAX((BTREE_CORE_ELEMS / (tree->bt_bulk == NULL ? in zfs_btree_insert_into_parent() local
718 uint32_t keep_count = BTREE_CORE_ELEMS - move_count - 1; in zfs_btree_insert_into_parent()
719 ASSERT3U(BTREE_CORE_ELEMS - move_count, >=, 2); in zfs_btree_insert_into_parent()
726 new_par_hdr->bth_count = move_count; in zfs_btree_insert_into_parent()
731 bt_transfer_core(tree, parent, keep_count + 1, move_count, new_parent, in zfs_btree_insert_into_parent()
765 bt_shift_core_right(tree, new_parent, 0, move_count, in zfs_btree_insert_into_parent()
841 uint32_t move_count = MAX(capacity / (tree->bt_bulk ? 4 : 2), 1) - 1; in zfs_btree_insert_into_leaf() local
842 uint32_t keep_count = capacity - move_count - 1; in zfs_btree_insert_into_leaf()
847 move_count++; in zfs_btree_insert_into_leaf()
854 (idx >= keep_count && idx <= keep_count + move_count / 2); in zfs_btree_insert_into_leaf()
855 new_hdr->bth_count = move_count; in zfs_btree_insert_into_leaf()
862 bt_transfer_leaf(tree, leaf, keep_count + 1, move_count, new_leaf, 0); in zfs_btree_insert_into_leaf()
869 bt_shrink_leaf(tree, leaf, keep_count, 1 + move_count); in zfs_btree_insert_into_leaf()
967 uint32_t move_count = (capacity / 2) - hdr->bth_count; in zfs_btree_bulk_finish() local
968 ASSERT3U(l_neighbor->btl_hdr.bth_count - move_count, >=, in zfs_btree_bulk_finish()
972 for (uint32_t i = 0; i < move_count; i++) { in zfs_btree_bulk_finish()
979 bt_grow_leaf(tree, leaf, 0, move_count); in zfs_btree_bulk_finish()
984 (hdr->bth_first + move_count - 1) * size; in zfs_btree_bulk_finish()
992 (move_count - 1), move_count - 1, leaf, 0); in zfs_btree_bulk_finish()
999 l_hdr->bth_count - move_count) * size, separator, size); in zfs_btree_bulk_finish()
1002 bt_shrink_leaf(tree, l_neighbor, l_hdr->bth_count - move_count, in zfs_btree_bulk_finish()
1003 move_count); in zfs_btree_bulk_finish()
1034 uint32_t move_count = (capacity / 2) - hdr->bth_count; in zfs_btree_bulk_finish() local
1035 ASSERT3U(l_neighbor->btc_hdr.bth_count - move_count, >=, in zfs_btree_bulk_finish()
1039 for (uint32_t i = 0; i < move_count; i++) { in zfs_btree_bulk_finish()
1045 bt_shift_core(tree, cur, 0, hdr->bth_count, move_count, in zfs_btree_bulk_finish()
1051 uint8_t *e_out = cur->btc_elems + ((move_count - 1) * size); in zfs_btree_bulk_finish()
1058 move_count--; in zfs_btree_bulk_finish()
1059 uint32_t move_idx = l_neighbor->btc_hdr.bth_count - move_count; in zfs_btree_bulk_finish()
1060 bt_transfer_core(tree, l_neighbor, move_idx, move_count, cur, 0, in zfs_btree_bulk_finish()
1070 l_neighbor->btc_hdr.bth_count -= move_count + 1; in zfs_btree_bulk_finish()
1071 hdr->bth_count += move_count + 1; in zfs_btree_bulk_finish()