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

/linux-master/fs/reiserfs/
H A Dlbalance.c350 RFALSE(blkh_free_space(blkh) < cpy_num * IH_SIZE,
352 B_FREE_SPACE(dest), cpy_num * IH_SIZE);
355 memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE);
358 memcpy(ih, item_head(src, first), cpy_num * IH_SIZE);
360 free_space -= (IH_SIZE * cpy_num);
403 IH_SIZE * cpy_num));
442 memcpy(&n_ih, ih, IH_SIZE);
919 RFALSE(free_space < ih_item_len(inserted_item_ih) + IH_SIZE,
948 memmove(ih + 1, ih, IH_SIZE * (nr - before));
949 memmove(ih, inserted_item_ih, IH_SIZE);
[all...]
H A Dstree.c33 memcpy(to, from, IH_SIZE);
425 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) {
432 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih));
456 || ih_location(ih) < IH_SIZE * nr) {
476 if (ih_item_len(ih) < (ih_entry_count(ih) * IH_SIZE)) {
773 DISK_LEAF_NODE_LEVEL) ? IH_SIZE :
945 return memcmp(stored_ih, ih, IH_SIZE);
958 *cut_size = -(IH_SIZE + ih_item_len(le_ih));
966 *cut_size = -(IH_SIZE + ih_item_len(le_ih));
979 *cut_size = -(IH_SIZE
[all...]
H A Dfix_node.c105 vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE;
224 ((vi->vi_type & VI_TYPE_LEFT_MERGEABLE) ? IH_SIZE : 0))) {
235 d_size = 0, ih_size = IH_SIZE;
239 d_size = -((int)IH_SIZE), ih_size = 0;
243 i++, ih_size = IH_SIZE, d_size = 0, vi++) {
310 ((vi->vi_type & VI_TYPE_RIGHT_MERGEABLE) ? IH_SIZE : 0))) {
321 d_size = 0, ih_size = IH_SIZE;
325 d_size = -(int)IH_SIZE, ih_size = 0;
329 i--, d_size = 0, ih_size = IH_SIZE, vi--) {
513 free_space = max_node_size - total_node_size - IH_SIZE;
[all...]
H A Ditem_ops.c88 return vi->vi_item_len - IH_SIZE;
179 return vi->vi_item_len - IH_SIZE;
323 return vi->vi_item_len - IH_SIZE;
505 if (l + IH_SIZE != vi->vi_item_len +
H A Dprints.c738 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE)
741 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr)
752 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE)
H A Dreiserfs.h1393 #define IH_SIZE (sizeof(struct item_head)) macro
1622 #define MAX_ITEM_LEN(block_size) (block_size - BLKH_SIZE - IH_SIZE)
2678 #define MAX_DIRECT_ITEM_LEN(size) ((size) - BLKH_SIZE - 2*IH_SIZE - SD_SIZE - UNFM_P_SIZE)
H A Ddo_balan.c86 RFALSE(ih_item_len(ih) + IH_SIZE != -tb->insert_size[0],

Completed in 276 milliseconds