Lines Matching refs:pos_in_item
114 int pos_in_item = tb->tb_path->pos_in_item; in balance_leaf_when_delete_cut() local
127 leaf_cut_from_buffer(&bi, item_pos, pos_in_item, in balance_leaf_when_delete_cut()
130 RFALSE(!item_pos && !pos_in_item && !tb->CFL[0], in balance_leaf_when_delete_cut()
134 if (!item_pos && !pos_in_item && tb->CFL[0]) in balance_leaf_when_delete_cut()
137 leaf_cut_from_buffer(&bi, item_pos, pos_in_item, in balance_leaf_when_delete_cut()
362 if (tb->lbytes > tb->pos_in_item) { in balance_leaf_paste_left_shift_dirent()
365 int ret, l_pos_in_item = tb->pos_in_item; in balance_leaf_paste_left_shift_dirent()
410 tb->pos_in_item -= tb->lbytes; in balance_leaf_paste_left_shift_dirent()
430 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)), in balance_leaf_paste_left_shift()
433 ih_item_len(item_head(tbS0, tb->item_pos)), tb->pos_in_item); in balance_leaf_paste_left_shift()
436 if (tb->lbytes >= tb->pos_in_item) { in balance_leaf_paste_left_shift()
449 l_n = tb->lbytes - tb->pos_in_item; in balance_leaf_paste_left_shift()
502 tb->pos_in_item = 0; in balance_leaf_paste_left_shift()
515 tb->pos_in_item -= tb->lbytes; in balance_leaf_paste_left_shift()
517 RFALSE(tb->pos_in_item <= 0, in balance_leaf_paste_left_shift()
519 tb->pos_in_item); in balance_leaf_paste_left_shift()
551 tb->pos_in_item += ih_entry_count(pasted); in balance_leaf_paste_left_whole()
553 tb->pos_in_item += ih_item_len(pasted); in balance_leaf_paste_left_whole()
564 leaf_paste_in_buffer(&bi, n + tb->item_pos - ret, tb->pos_in_item, in balance_leaf_paste_left_whole()
571 tb->pos_in_item, 1, in balance_leaf_paste_left_whole()
720 if (entry_count - tb->rbytes < tb->pos_in_item) { in balance_leaf_paste_right_shift_dirent()
735 paste_entry_position = tb->pos_in_item - entry_count + in balance_leaf_paste_right_shift_dirent()
751 tb->pos_in_item++; in balance_leaf_paste_right_shift_dirent()
784 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)), in balance_leaf_paste_right_shift()
786 "pos_in_item=%d", tb->pos_in_item, in balance_leaf_paste_right_shift()
833 tb->pos_in_item++; in balance_leaf_paste_right_shift()
849 if (tb->pos_in_item >= 0) { in balance_leaf_paste_right_whole()
852 tb->pos_in_item, tb->insert_size[0], body, in balance_leaf_paste_right_whole()
858 if (is_direntry_le_ih(pasted) && tb->pos_in_item >= 0) { in balance_leaf_paste_right_whole()
860 tb->pos_in_item, 1, in balance_leaf_paste_right_whole()
864 if (!tb->pos_in_item) { in balance_leaf_paste_right_whole()
1021 if (entry_count - tb->sbytes[i] < tb->pos_in_item && in balance_leaf_new_nodes_paste_dirent()
1022 tb->pos_in_item <= entry_count) { in balance_leaf_new_nodes_paste_dirent()
1044 leaf_paste_in_buffer(&bi, 0, tb->pos_in_item - entry_count + in balance_leaf_new_nodes_paste_dirent()
1049 leaf_paste_entries(&bi, 0, tb->pos_in_item - entry_count + in balance_leaf_new_nodes_paste_dirent()
1055 tb->pos_in_item++; in balance_leaf_new_nodes_paste_dirent()
1089 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)) || in balance_leaf_new_nodes_paste_shift()
1134 tb->pos_in_item++; in balance_leaf_new_nodes_paste_shift()
1155 (tb->pos_in_item != ih_item_len(ih_check) || in balance_leaf_new_nodes_paste_whole()
1172 tb->pos_in_item, tb->insert_size[0], in balance_leaf_new_nodes_paste_whole()
1179 tb->pos_in_item, 1, in balance_leaf_new_nodes_paste_whole()
1285 if (tb->pos_in_item >= 0 && tb->pos_in_item <= ih_entry_count(pasted)) { in balance_leaf_finish_node_paste_dirent()
1291 leaf_paste_in_buffer(&bi, tb->item_pos, tb->pos_in_item, in balance_leaf_finish_node_paste_dirent()
1295 leaf_paste_entries(&bi, tb->item_pos, tb->pos_in_item, 1, in balance_leaf_finish_node_paste_dirent()
1299 if (!tb->item_pos && !tb->pos_in_item) { in balance_leaf_finish_node_paste_dirent()
1327 if (tb->pos_in_item == ih_item_len(pasted)) { in balance_leaf_finish_node_paste()
1333 tb->pos_in_item, tb->insert_size[0], body, in balance_leaf_finish_node_paste()
1396 tb->pos_in_item = tb->tb_path->pos_in_item, in balance_leaf()
1407 tb->pos_in_item *= UNFM_P_SIZE; in balance_leaf()