• Home
  • Raw
  • Download

Lines Matching refs:src

127 				   struct buffer_head *src, int last_first,  in leaf_copy_boundary_item()  argument
141 ih = B_N_PITEM_HEAD(src, 0); in leaf_copy_boundary_item()
144 || (!op_is_left_mergeable(&(ih->ih_key), src->b_size))) in leaf_copy_boundary_item()
155 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, 0, 0, in leaf_copy_boundary_item()
182 bytes_or_entries, B_I_PITEM(src, ih), 0); in leaf_copy_boundary_item()
200 src_nr_item = B_NR_ITEMS(src); in leaf_copy_boundary_item()
201 ih = B_N_PITEM_HEAD(src, src_nr_item - 1); in leaf_copy_boundary_item()
204 if (!dest_nr_item || !op_is_left_mergeable(&(dih->ih_key), src->b_size)) in leaf_copy_boundary_item()
212 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST, in leaf_copy_boundary_item()
233 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item()
272 B_I_PITEM(src, in leaf_copy_boundary_item()
283 struct buffer_head *src, int last_first, in leaf_copy_items_entirely() argument
296 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely()
298 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely()
327 memcpy(ih, B_N_PITEM_HEAD(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
354 B_N_PITEM(src, (first + cpy_num - 1)), j - last_inserted_loc); in leaf_copy_items_entirely()
381 struct buffer_head *src, int last_first, in leaf_item_bottle() argument
392 if (is_direntry_le_ih(ih = B_N_PITEM_HEAD(src, item_num))) in leaf_item_bottle()
393 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, in leaf_item_bottle()
412 RFALSE(op_is_left_mergeable(&(ih->ih_key), src->b_size), in leaf_item_bottle()
416 B_N_PITEM(src, item_num), 0); in leaf_item_bottle()
420 if (is_direntry_le_ih(ih = B_N_PITEM_HEAD(src, item_num))) in leaf_item_bottle()
421 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST, in leaf_item_bottle()
461 B_N_PITEM(src, in leaf_item_bottle()
472 static int leaf_copy_items(struct buffer_info *dest_bi, struct buffer_head *src, in leaf_copy_items() argument
479 RFALSE(!dest || !src, "vs-10210: !dest || !src"); in leaf_copy_items()
482 RFALSE(B_NR_ITEMS(src) < cpy_num, in leaf_copy_items()
483 "vs-10230: No enough items: %d, req. %d", B_NR_ITEMS(src), in leaf_copy_items()
499 i = leaf_copy_boundary_item(dest_bi, src, FIRST_TO_LAST, bytes); in leaf_copy_items()
506 leaf_copy_items_entirely(dest_bi, src, FIRST_TO_LAST, in leaf_copy_items()
510 leaf_copy_items_entirely(dest_bi, src, FIRST_TO_LAST, in leaf_copy_items()
514 leaf_item_bottle(dest_bi, src, FIRST_TO_LAST, in leaf_copy_items()
519 src_nr_item = B_NR_ITEMS(src); in leaf_copy_items()
526 i = leaf_copy_boundary_item(dest_bi, src, LAST_TO_FIRST, bytes); in leaf_copy_items()
535 leaf_copy_items_entirely(dest_bi, src, LAST_TO_FIRST, in leaf_copy_items()
539 leaf_copy_items_entirely(dest_bi, src, LAST_TO_FIRST, in leaf_copy_items()
543 leaf_item_bottle(dest_bi, src, LAST_TO_FIRST, pos, in leaf_copy_items()