Searched refs:KEY_SIZE (Results 1 – 8 of 8) sorted by relevance
/linux-2.4.37.9/fs/reiserfs/ |
D | ibalance.c | 148 RFALSE( B_FREE_SPACE (cur) < count * (KEY_SIZE + DC_SIZE), in internal_insert_childs() 150 B_FREE_SPACE (cur), count * (KEY_SIZE + DC_SIZE)); in internal_insert_childs() 168 memmove (ih + count, ih, (nr - to) * KEY_SIZE + (nr + 1 + count) * DC_SIZE); in internal_insert_childs() 171 memcpy (ih, inserted, KEY_SIZE); in internal_insert_childs() 173 memcpy (ih + 1, inserted + 1, KEY_SIZE); in internal_insert_childs() 178 blkh_free_space(blkh) - count * (DC_SIZE + KEY_SIZE ) ); in internal_insert_childs() 188 put_dc_size( t_dc, dc_size(t_dc) + (count * (DC_SIZE + KEY_SIZE))); in internal_insert_childs() 245 memmove (key, key + del_num, (nr - first_i - del_num) * KEY_SIZE + (nr + 1 - del_num) * DC_SIZE); in internal_delete_pointers_items() 251 blkh_free_space(blkh) + (del_num * (KEY_SIZE + DC_SIZE) ) ); in internal_delete_pointers_items() 261 put_dc_size( t_dc, dc_size(t_dc) - (del_num * (KEY_SIZE + DC_SIZE) ) ); in internal_delete_pointers_items() [all …]
|
D | fix_node.c | 94 vn->vn_nr_item = (vn->vn_size - DC_SIZE) / (DC_SIZE + KEY_SIZE); in create_virtual_node() 206 tb->lnum[h] = cur_free / (DC_SIZE + KEY_SIZE); in check_left() 285 tb->rnum[h] = cur_free / (DC_SIZE + KEY_SIZE); in check_right() 399 i = ((to - from) * (KEY_SIZE + DC_SIZE) + DC_SIZE); in get_num_ver() 1168 + (( h ) ? KEY_SIZE : 0)) in can_node_be_removed() 1590 n = dc_size(B_N_CHILD(tb->FL[h],order_L)) / (DC_SIZE + KEY_SIZE); in dc_check_balance_internal() 1602 n = dc_size(B_N_CHILD(tb->FR[h],order_R)) / (DC_SIZE + KEY_SIZE); in dc_check_balance_internal() 1633 n = dc_size(B_N_CHILD(tb->FL[h],order_L)) / (DC_SIZE + KEY_SIZE); in dc_check_balance_internal() 1645 n = dc_size(B_N_CHILD(tb->FR[h],order_R)) / (DC_SIZE + KEY_SIZE); in dc_check_balance_internal() 2413 p_s_tb->insert_size[n_h + 1] = (DC_SIZE + KEY_SIZE) * (p_s_tb->blknum[n_h] - 1) + DC_SIZE; in fix_nodes() [all …]
|
D | stree.c | 567 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal() 573 used_space = BLKH_SIZE + KEY_SIZE * nr + DC_SIZE * (nr + 1); in is_internal() 768 ( n_node_level == DISK_LEAF_NODE_LEVEL ) ? IH_SIZE : KEY_SIZE, in search_by_key()
|
D | do_balan.c | 1063 memcpy (insert_key + i,B_N_PKEY(S_new[i],0),KEY_SIZE); in balance_leaf() 1289 memcpy (B_N_PDELIM_KEY(dest,n_dest), B_N_PITEM_HEAD(src,n_src), KEY_SIZE); in replace_key() 1291 memcpy (B_N_PDELIM_KEY(dest,n_dest), B_N_PDELIM_KEY(src,n_src), KEY_SIZE); in replace_key()
|
D | prints.c | 695 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS (bh) - DC_SIZE * (B_NR_ITEMS (bh) + 1)) in check_internal_block_head()
|
D | inode.c | 1163 memset(INODE_PKEY(inode), 0, KEY_SIZE); in reiserfs_make_bad_inode() 1653 memcpy (INODE_PKEY (inode), &(ih.ih_key), KEY_SIZE); in reiserfs_new_inode()
|
D | lbalance.c | 65 memcpy (&new_ih.ih_key, &ih->ih_key, KEY_SIZE); in leaf_copy_dir_entries()
|
/linux-2.4.37.9/include/linux/ |
D | reiserfs_fs.h | 459 #define KEY_SIZE (sizeof(struct key)) macro 1173 ((p_s_bh)->b_data+BLKH_SIZE+B_NR_ITEMS(p_s_bh)*KEY_SIZE+DC_SIZE*(n_pos))) 1187 #define MAX_NR_KEY(bh) ( (MAX_CHILD_SIZE(bh)-DC_SIZE)/(KEY_SIZE+DC_SIZE) ) 1812 memcpy (to, from, KEY_SIZE); in copy_key()
|