Lines Matching defs:dest_bi
15 static void leaf_copy_dir_entries(struct buffer_info *dest_bi,
19 struct buffer_head *dest = dest_bi->bi_bh;
102 leaf_insert_into_buf(dest_bi,
108 leaf_paste_in_buffer(dest_bi,
119 leaf_paste_entries(dest_bi, item_num_in_dest,
134 static int leaf_copy_boundary_item(struct buffer_info *dest_bi,
138 struct buffer_head *dest = dest_bi->bi_bh;
168 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, 0, 0,
187 reiserfs_panic(sb_from_bi(dest_bi),
199 leaf_paste_in_buffer(dest_bi,
235 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST,
296 leaf_paste_in_buffer(dest_bi, 0, 0, bytes_or_entries,
310 static void leaf_copy_items_entirely(struct buffer_info *dest_bi,
328 RFALSE(!dest_bi, "vs-10120: can not copy negative amount of items");
330 dest = dest_bi->bi_bh;
392 do_balance_mark_leaf_dirty(dest_bi->tb, dest, 0);
394 if (dest_bi->bi_parent) {
396 t_dc = B_N_CHILD(dest_bi->bi_parent, dest_bi->bi_position);
405 do_balance_mark_internal_dirty(dest_bi->tb, dest_bi->bi_parent,
414 static void leaf_item_bottle(struct buffer_info *dest_bi,
418 struct buffer_head *dest = dest_bi->bi_bh;
431 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST,
455 leaf_insert_into_buf(dest_bi, B_NR_ITEMS(dest), &n_ih,
465 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST,
508 leaf_insert_into_buf(dest_bi, 0, &n_ih,
521 static int leaf_copy_items(struct buffer_info *dest_bi, struct buffer_head *src,
527 dest = dest_bi->bi_bh;
551 i = leaf_copy_boundary_item(dest_bi, src, FIRST_TO_LAST, bytes);
561 leaf_copy_items_entirely(dest_bi, src, FIRST_TO_LAST,
568 leaf_copy_items_entirely(dest_bi, src, FIRST_TO_LAST,
575 leaf_item_bottle(dest_bi, src, FIRST_TO_LAST,
591 i = leaf_copy_boundary_item(dest_bi, src, LAST_TO_FIRST, bytes);
603 leaf_copy_items_entirely(dest_bi, src, LAST_TO_FIRST,
610 leaf_copy_items_entirely(dest_bi, src, LAST_TO_FIRST,
617 leaf_item_bottle(dest_bi, src, LAST_TO_FIRST, pos,
630 struct buffer_info *dest_bi,
635 memset(dest_bi, 0, sizeof(struct buffer_info));
647 dest_bi->tb = tb;
648 dest_bi->bi_bh = tb->L[0];
649 dest_bi->bi_parent = tb->FL[0];
650 dest_bi->bi_position = get_left_neighbor_position(tb, 0);
659 dest_bi->tb = tb;
660 dest_bi->bi_bh = tb->R[0];
661 dest_bi->bi_parent = tb->FR[0];
662 dest_bi->bi_position = get_right_neighbor_position(tb, 0);
671 dest_bi->tb = tb;
672 dest_bi->bi_bh = tb->L[0];
673 dest_bi->bi_parent = tb->FL[0];
674 dest_bi->bi_position = get_left_neighbor_position(tb, 0);
683 dest_bi->tb = tb;
684 dest_bi->bi_bh = tb->R[0];
685 dest_bi->bi_parent = tb->FR[0];
686 dest_bi->bi_position = get_right_neighbor_position(tb, 0);
695 dest_bi->tb = tb;
696 dest_bi->bi_bh = Snew;
697 dest_bi->bi_parent = NULL;
698 dest_bi->bi_position = 0;
706 RFALSE(!src_bi->bi_bh || !dest_bi->bi_bh,
708 shift_mode, src_bi->bi_bh, dest_bi->bi_bh);
719 struct buffer_info dest_bi, src_bi;
722 leaf_define_dest_src_infos(shift_mode, tb, &dest_bi, &src_bi,
726 leaf_copy_items(&dest_bi, src_bi.bi_bh, first_last, mov_num,