Home
last modified time | relevance | path

Searched refs:IH_SIZE (Results 1 – 7 of 7) sorted by relevance

/linux-3.4.99/fs/reiserfs/
Dlbalance.c320 RFALSE(blkh_free_space(blkh) < cpy_num * IH_SIZE, in leaf_copy_items_entirely()
322 B_FREE_SPACE(dest), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
325 memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE); in leaf_copy_items_entirely()
328 memcpy(ih, B_N_PITEM_HEAD(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
330 free_space -= (IH_SIZE * cpy_num); in leaf_copy_items_entirely()
372 IH_SIZE * cpy_num)); in leaf_copy_items_entirely()
404 memcpy(&n_ih, ih, IH_SIZE); in leaf_item_bottle()
815 RFALSE(free_space < ih_item_len(inserted_item_ih) + IH_SIZE, in leaf_insert_into_buf()
844 memmove(ih + 1, ih, IH_SIZE * (nr - before)); in leaf_insert_into_buf()
845 memmove(ih, inserted_item_ih, IH_SIZE); in leaf_insert_into_buf()
[all …]
Dstree.c74 memcpy(to, from, IH_SIZE); in copy_item_head()
413 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf()
420 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()
441 || ih_location(ih) < IH_SIZE * nr) { in is_leaf()
740 DISK_LEAF_NODE_LEVEL) ? IH_SIZE : in search_by_key()
898 return memcmp(stored_ih, ih, IH_SIZE); in comp_items()
919 *cut_size = -(IH_SIZE + ih_item_len(le_ih)); in prepare_for_direct_item()
928 *cut_size = -(IH_SIZE + ih_item_len(le_ih)); in prepare_for_direct_item()
941 *cut_size = -(IH_SIZE + ih_item_len(le_ih)); in prepare_for_direct_item()
961 *cut_size = -(IH_SIZE + ih_item_len(le_ih)); in prepare_for_direntry_item()
[all …]
Dfix_node.c129 vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE; in create_virtual_node()
233 ((vi->vi_type & VI_TYPE_LEFT_MERGEABLE) ? IH_SIZE : 0))) { in check_left()
244 d_size = 0, ih_size = IH_SIZE; in check_left()
248 d_size = -((int)IH_SIZE), ih_size = 0; in check_left()
252 i++, ih_size = IH_SIZE, d_size = 0, vi++) { in check_left()
313 ((vi->vi_type & VI_TYPE_RIGHT_MERGEABLE) ? IH_SIZE : 0))) { in check_right()
324 d_size = 0, ih_size = IH_SIZE; in check_right()
328 d_size = -(int)IH_SIZE, ih_size = 0; in check_right()
332 i--, d_size = 0, ih_size = IH_SIZE, vi--) { in check_right()
481 free_space = max_node_size - total_node_size - IH_SIZE; in get_num_ver()
[all …]
Ditem_ops.c95 return vi->vi_item_len - IH_SIZE; in sd_unit_num()
189 return vi->vi_item_len - IH_SIZE; in direct_unit_num()
334 return vi->vi_item_len - IH_SIZE; in indirect_unit_num()
516 if (l + IH_SIZE != vi->vi_item_len + in direntry_create_vi()
Dprints.c711 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()
714 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head()
728 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
Dreiserfs.h1181 #define IH_SIZE (sizeof(struct item_head)) macro
1400 #define MAX_ITEM_LEN(block_size) (block_size - BLKH_SIZE - IH_SIZE)
2250 #define MAX_DIRECT_ITEM_LEN(size) ((size) - BLKH_SIZE - 2*IH_SIZE - SD_SIZE - UNFM_P_SIZE)
Ddo_balan.c125 RFALSE(ih_item_len(ih) + IH_SIZE != -tb->insert_size[0], in balance_leaf_when_delete()