Lines Matching refs:rnum

154 		if (tb->rnum[0] == -1) {  in balance_leaf_when_delete_left()
191 RFALSE(tb->rnum[0] != 0, in balance_leaf_when_delete_left()
192 "PAP-12045: rnum must be 0 (%d)", tb->rnum[0]); in balance_leaf_when_delete_left()
206 RFALSE((tb->lnum[0] + tb->rnum[0] < n) || in balance_leaf_when_delete_left()
207 (tb->lnum[0] + tb->rnum[0] > n + 1), in balance_leaf_when_delete_left()
210 tb->rnum[0], tb->lnum[0], n); in balance_leaf_when_delete_left()
211 RFALSE((tb->lnum[0] + tb->rnum[0] == n) && in balance_leaf_when_delete_left()
216 RFALSE((tb->lnum[0] + tb->rnum[0] == n + 1) && in balance_leaf_when_delete_left()
223 leaf_shift_right(tb, tb->rnum[0], tb->rbytes); in balance_leaf_when_delete_left()
277 if (tb->rnum[0] == -1) { in balance_leaf_when_delete()
284 RFALSE(tb->rnum[0], in balance_leaf_when_delete()
285 "PAP-12065: bad rnum parameter must be 0 (%d)", tb->rnum[0]); in balance_leaf_when_delete()
638 if (n - tb->rnum[0] >= tb->item_pos) { in balance_leaf_insert_right()
639 leaf_shift_right(tb, tb->rnum[0], tb->rbytes); in balance_leaf_insert_right()
646 if (tb->item_pos == n - tb->rnum[0] + 1 && tb->rbytes != -1) { in balance_leaf_insert_right()
652 leaf_shift_right(tb, tb->rnum[0] - 1, -1); in balance_leaf_insert_right()
701 ret = leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes); in balance_leaf_insert_right()
705 leaf_insert_into_buf(&bi, tb->item_pos - n + tb->rnum[0] - 1, in balance_leaf_insert_right()
708 if (tb->item_pos - n + tb->rnum[0] - 1 == 0) in balance_leaf_insert_right()
741 leaf_shift_right(tb, tb->rnum[0], tb->rbytes - 1); in balance_leaf_paste_right_shift_dirent()
763 leaf_shift_right(tb, tb->rnum[0], tb->rbytes); in balance_leaf_paste_right_shift_dirent()
798 leaf_shift_right(tb, tb->rnum[0], n_shift); in balance_leaf_paste_right_shift()
855 leaf_shift_right(tb, tb->rnum[0], tb->rbytes); in balance_leaf_paste_right_whole()
860 leaf_paste_in_buffer(&bi, tb->item_pos - n + tb->rnum[0], in balance_leaf_paste_right_whole()
866 pasted = item_head(tb->R[0], tb->item_pos - n + tb->rnum[0]); in balance_leaf_paste_right_whole()
868 leaf_paste_entries(&bi, tb->item_pos - n + tb->rnum[0], in balance_leaf_paste_right_whole()
875 RFALSE(tb->item_pos - n + tb->rnum[0], in balance_leaf_paste_right_whole()
897 if (n - tb->rnum[0] > tb->item_pos) { in balance_leaf_paste_right()
898 leaf_shift_right(tb, tb->rnum[0], tb->rbytes); in balance_leaf_paste_right()
904 if (tb->item_pos == n - tb->rnum[0] && tb->rbytes != -1) in balance_leaf_paste_right()
917 if (tb->rnum[0] <= 0) in balance_leaf_right()
1441 RFALSE(!tb->lnum[0] || !tb->rnum[0], in balance_leaf()
1680 if (tb->rnum[0]) { in check_before_balancing()
1705 if (tb->rnum[0]) { in check_after_balance_leaf()
1758 if (tb->rnum[h]) in check_internal_levels()