Home
last modified time | relevance | path

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

/fs/reiserfs/
Ddo_balan.c114 int pos_in_item = tb->tb_path->pos_in_item; in balance_leaf_when_delete_cut() local
127 leaf_cut_from_buffer(&bi, item_pos, pos_in_item, in balance_leaf_when_delete_cut()
130 RFALSE(!item_pos && !pos_in_item && !tb->CFL[0], in balance_leaf_when_delete_cut()
134 if (!item_pos && !pos_in_item && tb->CFL[0]) in balance_leaf_when_delete_cut()
137 leaf_cut_from_buffer(&bi, item_pos, pos_in_item, in balance_leaf_when_delete_cut()
362 if (tb->lbytes > tb->pos_in_item) { in balance_leaf_paste_left_shift_dirent()
365 int ret, l_pos_in_item = tb->pos_in_item; in balance_leaf_paste_left_shift_dirent()
410 tb->pos_in_item -= tb->lbytes; in balance_leaf_paste_left_shift_dirent()
430 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)), in balance_leaf_paste_left_shift()
433 ih_item_len(item_head(tbS0, tb->item_pos)), tb->pos_in_item); in balance_leaf_paste_left_shift()
[all …]
Dstree.c885 pos_in_item(search_path) = 0; in search_for_position_by_key()
909 pos_in_item(search_path) = offset - item_offset; in search_for_position_by_key()
911 pos_in_item(search_path) /= blk_size; in search_for_position_by_key()
921 pos_in_item(search_path) = in search_for_position_by_key()
924 pos_in_item(search_path) = ih_item_len(p_le_ih); in search_for_position_by_key()
970 pos_in_item(path) = round_len - (le_ih_k_offset(le_ih) - 1); in prepare_for_direct_item()
971 *cut_size = -(ih_item_len(le_ih) - pos_in_item(path)); in prepare_for_direct_item()
985 (pos_in_item(path) = in prepare_for_direct_item()
1017 entry_length(get_last_bh(path), le_ih, pos_in_item(path))); in prepare_for_direntry_item()
1150 pos_in_item(path) = pos * UNFM_P_SIZE; in prepare_for_delete_or_cut()
[all …]
Dinode.c216 __le32 * item, int pos_in_item) in allocation_needed() argument
221 get_block_num(item, pos_in_item)) in allocation_needed()
334 blocknr = get_block_num(ind_item, path.pos_in_item); in _get_block_create_0()
338 if (path.pos_in_item == in _get_block_create_0()
414 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0()
419 path.pos_in_item; in _get_block_create_0()
422 chars = ih_item_len(ih) - path.pos_in_item; in _get_block_create_0()
424 memcpy(p, ih_item_body(bh, ih) + path.pos_in_item, chars); in _get_block_create_0()
664 int pos_in_item; in reiserfs_get_block() local
750 pos_in_item = path.pos_in_item; in reiserfs_get_block()
[all …]
Dlbalance.c979 int pos_in_item, int paste_size, in leaf_paste_in_buffer() argument
1028 if (!pos_in_item) { in leaf_paste_in_buffer()
1146 int pos_in_item, int cut_size) in leaf_cut_from_buffer() argument
1163 cut_size = leaf_cut_entries(bh, ih, pos_in_item, cut_size); in leaf_cut_from_buffer()
1164 if (pos_in_item == 0) { in leaf_cut_from_buffer()
1175 RFALSE(pos_in_item && pos_in_item + cut_size != ih_item_len(ih), in leaf_cut_from_buffer()
1177 (long unsigned)pos_in_item, (long unsigned)cut_size, in leaf_cut_from_buffer()
1181 if (pos_in_item == 0) { in leaf_cut_from_buffer()
1217 if (pos_in_item) in leaf_cut_from_buffer()
Dbitmap.c859 int pos_in_item; in get_left_neighbor() local
874 pos_in_item = path->pos_in_item; in get_left_neighbor()
884 if (pos_in_item == I_UNFM_NUM(ih)) in get_left_neighbor()
885 pos_in_item--; in get_left_neighbor()
886 while (pos_in_item >= 0) { in get_left_neighbor()
887 int t = get_block_num(item, pos_in_item); in get_left_neighbor()
893 pos_in_item--; in get_left_neighbor()
Dreiserfs.h2138 int pos_in_item; member
2141 #define pos_in_item(path) ((path)->pos_in_item) macro
2254 const struct item_head *ih, int pos_in_item) in entry_length() argument
2258 deh = B_I_DEH(bh, ih) + pos_in_item; in entry_length()
2259 if (pos_in_item) in entry_length()
2518 int pos_in_item; member
3231 int pos_in_item, int paste_size,
3234 int pos_in_item, int cut_size);
Dfix_node.c2065 int pos_in_item, in check_balance() argument
2074 vn->vn_pos_in_item = pos_in_item; in check_balance()
2549 int pos_in_item; in fix_nodes() local
2560 pos_in_item = tb->tb_path->pos_in_item; in fix_nodes()
2636 pos_in_item, ins_ih, data); in fix_nodes()
Ditem_ops.c431 int pos_in_item, int mode) in old_entry_num() argument
440 if (virtual_entry_num < pos_in_item) in old_entry_num()
Dnamei.c165 path->pos_in_item = de->de_entry_num; in search_by_entry_key()
337 path_to_entry->pos_in_item = de->de_entry_num; in reiserfs_find_entry()
Dprints.c656 tb->tb_path->pos_in_item); in store_print_tb()