Home
last modified time | relevance | path

Searched refs:B_NR_ITEMS (Results 1 – 10 of 10) sorted by relevance

/linux-3.4.99/fs/reiserfs/
Dibalance.c208 RFALSE(first_p < 0 || first_p + del_num > B_NR_ITEMS(cur) + 1 in internal_delete_pointers_items()
213 B_NR_ITEMS(cur) + 1, first_i); in internal_delete_pointers_items()
227 RFALSE(first_i + del_num > B_NR_ITEMS(cur), in internal_delete_pointers_items()
296 nr_src = B_NR_ITEMS(src); in internal_copy_pointers_items()
305 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest), in internal_copy_pointers_items()
307 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest)); in internal_copy_pointers_items()
397 B_NR_ITEMS(src_bi->bi_bh)) + 1) ? 0 : j - cpy_num + in internal_move_pointers_items()
420 RFALSE(dest_position_before > B_NR_ITEMS(dest) || in internal_insert_key()
421 src_position >= B_NR_ITEMS(src), in internal_insert_key()
423 dest_position_before, B_NR_ITEMS(dest), in internal_insert_key()
[all …]
Dlbalance.c59 LAST_TO_FIRST) ? ((B_NR_ITEMS(dest)) ? 0 : -1) : (B_NR_ITEMS(dest) in leaf_copy_dir_entries()
99 LAST_TO_FIRST) ? 0 : B_NR_ITEMS(dest), in leaf_copy_dir_entries()
105 FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - in leaf_copy_dir_entries()
112 (last_first == FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - 1) : 0; in leaf_copy_dir_entries()
135 dest_nr_item = B_NR_ITEMS(dest); in leaf_copy_boundary_item()
201 src_nr_item = B_NR_ITEMS(src); in leaf_copy_boundary_item()
297 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely()
299 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely()
417 leaf_insert_into_buf(dest_bi, B_NR_ITEMS(dest), &n_ih, in leaf_item_bottle()
485 RFALSE(B_NR_ITEMS(src) < cpy_num, in leaf_copy_items()
[all …]
Dprints.c137 B_LEVEL(bh), B_NR_ITEMS(bh), B_FREE_SPACE(bh)); in sprintf_block_head()
430 to = B_NR_ITEMS(bh); in print_internal()
433 to = last < B_NR_ITEMS(bh) ? last : B_NR_ITEMS(bh); in print_internal()
728 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
732 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
733 DC_SIZE * (B_NR_ITEMS(bh) + 1)) in check_internal_block_head()
746 for (i = 0, ih = B_N_PITEM_HEAD(bh, 0); i < B_NR_ITEMS(bh); i++, ih++) in check_leaf()
Ddo_balan.c132 if (B_NR_ITEMS(tbS0)) { in balance_leaf_when_delete()
187 n = B_NR_ITEMS(tbS0); in balance_leaf_when_delete()
194 && 1 < B_NR_ITEMS(tb->FR[0])) in balance_leaf_when_delete()
202 B_NR_ITEMS(tb->R[0]), in balance_leaf_when_delete()
215 B_NR_ITEMS(tb->L[0]), -1, NULL); in balance_leaf_when_delete()
322 n = B_NR_ITEMS(tb->L[0]); in balance_leaf()
433 B_NR_ITEMS in balance_leaf()
629 B_NR_ITEMS in balance_leaf()
745 n = B_NR_ITEMS(tbS0); in balance_leaf()
1173 n = B_NR_ITEMS(tbS0); in balance_leaf()
[all …]
Dfix_node.c99 B_NR_ITEMS(Sh) + ((vn->vn_mode == M_INSERT) ? 1 : 0) - in create_virtual_node()
174 || vn->vn_affected_item_num != B_NR_ITEMS(Sh) - 1)) in create_virtual_node()
181 || vn->vn_affected_item_num != B_NR_ITEMS(Sh) - 1)) { in create_virtual_node()
184 (B_NR_ITEMS(Sh) == 1 in create_virtual_node()
674 RFALSE(B_NR_ITEMS(S0) != 1, in are_leaves_removable()
676 B_NR_ITEMS(S0)); in are_leaves_removable()
866 order = B_NR_ITEMS(l); in get_lfree()
921 tb->lkey[h] : B_NR_ITEMS(tb->FL[h]); in is_left_neighbor_in_cache()
986 B_NR_ITEMS(parent)) in get_far_parent()
994 first_last_position = B_NR_ITEMS(parent); in get_far_parent()
[all …]
Ddir.c110 RFALSE(item_num > B_NR_ITEMS(bh) - 1, in reiserfs_readdir_dentry()
112 item_num, B_NR_ITEMS(bh)); in reiserfs_readdir_dentry()
214 if (item_num != B_NR_ITEMS(bh) - 1) in reiserfs_readdir_dentry()
Dstree.c266 B_NR_ITEMS(parent)) in get_lkey()
309 B_NR_ITEMS(parent)) in get_rkey()
317 if (position != B_NR_ITEMS(parent)) in get_rkey()
738 B_NR_ITEMS(bh), in search_by_key()
766 int limit = B_NR_ITEMS(bh); in search_by_key()
893 if (PATH_LAST_POSITION(path) >= B_NR_ITEMS(bh)) in comp_items()
Dreiserfs.h1455 #define B_NR_ITEMS(bh) (blkh_nr_item(B_BLK_HEAD(bh))) macro
1825 ((bh)->b_data + BLKH_SIZE + B_NR_ITEMS(bh) * KEY_SIZE + DC_SIZE * (n_pos)))
2670 PROC_INFO_ADD( sb, items_at[ ( level ) ], B_NR_ITEMS( bh ) )
Dsuper.c213 if (item_pos != B_NR_ITEMS(bh)) { in finish_unfinished()
Dinode.c389 if (PATH_LAST_POSITION(&path) != (B_NR_ITEMS(bh) - 1)) in _get_block_create_0()