Lines Matching refs:dest_bi

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