Searched refs:pos_in_item (Results 1 – 10 of 10) sorted by relevance
/fs/reiserfs/ |
D | do_balan.c | 114 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 …]
|
D | stree.c | 885 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 …]
|
D | inode.c | 216 __le32 * item, int pos_in_item) in allocation_needed() argument 221 get_block_num(item, pos_in_item)) in allocation_needed() 332 blocknr = get_block_num(ind_item, path.pos_in_item); in _get_block_create_0() 336 if (path.pos_in_item == in _get_block_create_0() 406 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0() 411 path.pos_in_item; in _get_block_create_0() 414 chars = ih_item_len(ih) - path.pos_in_item; in _get_block_create_0() 416 memcpy(p, ih_item_body(bh, ih) + path.pos_in_item, chars); in _get_block_create_0() 656 int pos_in_item; in reiserfs_get_block() local 742 pos_in_item = path.pos_in_item; in reiserfs_get_block() [all …]
|
D | lbalance.c | 979 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()
|
D | bitmap.c | 859 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()
|
D | reiserfs.h | 2135 int pos_in_item; member 2138 #define pos_in_item(path) ((path)->pos_in_item) macro 2251 const struct item_head *ih, int pos_in_item) in entry_length() argument 2255 deh = B_I_DEH(bh, ih) + pos_in_item; in entry_length() 2256 if (pos_in_item) in entry_length() 2515 int pos_in_item; member 3231 int pos_in_item, int paste_size, 3234 int pos_in_item, int cut_size);
|
D | fix_node.c | 2065 int pos_in_item, in check_balance() argument 2074 vn->vn_pos_in_item = pos_in_item; in check_balance() 2550 int pos_in_item; in fix_nodes() local 2561 pos_in_item = tb->tb_path->pos_in_item; in fix_nodes() 2637 pos_in_item, ins_ih, data); in fix_nodes()
|
D | item_ops.c | 431 int pos_in_item, int mode) in old_entry_num() argument 440 if (virtual_entry_num < pos_in_item) in old_entry_num()
|
D | namei.c | 166 path->pos_in_item = de->de_entry_num; in search_by_entry_key() 338 path_to_entry->pos_in_item = de->de_entry_num; in reiserfs_find_entry()
|
D | prints.c | 656 tb->tb_path->pos_in_item); in store_print_tb()
|