Searched refs:cpy_num (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/fs/reiserfs/ |
D | lbalance.c | 312 int first, int cpy_num) in leaf_copy_items_entirely() argument 324 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely() 326 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely() 327 RFALSE(cpy_num < 0, "vs-10110: can not copy negative amount of items"); in leaf_copy_items_entirely() 334 if (cpy_num == 0) in leaf_copy_items_entirely() 350 RFALSE(blkh_free_space(blkh) < cpy_num * IH_SIZE, in leaf_copy_items_entirely() 352 B_FREE_SPACE(dest), cpy_num * IH_SIZE); in leaf_copy_items_entirely() 355 memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE); in leaf_copy_items_entirely() 358 memcpy(ih, item_head(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely() 360 free_space -= (IH_SIZE * cpy_num); in leaf_copy_items_entirely() [all …]
|
D | ibalance.c | 300 int last_first, int cpy_num) in internal_copy_pointers_items() argument 320 RFALSE(nr_src < cpy_num - 1, in internal_copy_pointers_items() 321 "no so many items (%d) in src (%d)", cpy_num, nr_src); in internal_copy_pointers_items() 322 RFALSE(cpy_num < 0, "cpy_num less than 0 (%d)", cpy_num); in internal_copy_pointers_items() 323 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest), in internal_copy_pointers_items() 325 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest)); in internal_copy_pointers_items() 327 if (cpy_num == 0) in internal_copy_pointers_items() 337 nr_src - cpy_num + 1) : (dest_order = in internal_copy_pointers_items() 345 memmove(dc + cpy_num, dc, (nr_dest - dest_order) * DC_SIZE); in internal_copy_pointers_items() 348 memcpy(dc, B_N_CHILD(src, src_order), DC_SIZE * cpy_num); in internal_copy_pointers_items() [all …]
|