Lines Matching refs:ih

390 static int has_valid_deh_location(struct buffer_head *bh, struct item_head *ih)  in has_valid_deh_location()  argument
395 deh = B_I_DEH(bh, ih); in has_valid_deh_location()
396 for (i = 0; i < ih_entry_count(ih); i++) { in has_valid_deh_location()
397 if (deh_location(&deh[i]) > ih_item_len(ih)) { in has_valid_deh_location()
411 struct item_head *ih; in is_leaf() local
431 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf()
432 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()
446 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf()
448 for (i = 0; i < nr; i++, ih++) { in is_leaf()
449 if (le_ih_k_type(ih) == TYPE_ANY) { in is_leaf()
452 ih); in is_leaf()
455 if (ih_location(ih) >= blocksize in is_leaf()
456 || ih_location(ih) < IH_SIZE * nr) { in is_leaf()
459 ih); in is_leaf()
462 if (ih_item_len(ih) < 1 in is_leaf()
463 || ih_item_len(ih) > MAX_ITEM_LEN(blocksize)) { in is_leaf()
466 ih); in is_leaf()
469 if (prev_location - ih_location(ih) != ih_item_len(ih)) { in is_leaf()
472 "(second one): %h", ih); in is_leaf()
475 if (is_direntry_le_ih(ih)) { in is_leaf()
476 if (ih_item_len(ih) < (ih_entry_count(ih) * IH_SIZE)) { in is_leaf()
479 ih); in is_leaf()
482 return has_valid_deh_location(bh, ih); in is_leaf()
484 prev_location = ih_location(ih); in is_leaf()
933 struct item_head *ih; in comp_items() local
944 ih = tp_item_head(path); in comp_items()
945 return memcmp(stored_ih, ih, IH_SIZE); in comp_items()
1216 char key2type(struct reiserfs_key *ih) in key2type() argument
1218 if (is_direntry_le_key(2, ih)) in key2type()
1220 if (is_direct_le_key(2, ih)) in key2type()
1222 if (is_indirect_le_key(2, ih)) in key2type()
1224 if (is_statdata_le_key(2, ih)) in key2type()
1229 char head2type(struct item_head *ih) in head2type() argument
1231 if (is_direntry_le_ih(ih)) in head2type()
1233 if (is_direct_le_ih(ih)) in head2type()
1235 if (is_indirect_le_ih(ih)) in head2type()
1237 if (is_statdata_le_ih(ih)) in head2type()
2187 struct item_head *ih, struct inode *inode, in reiserfs_insert_item() argument
2200 quota_bytes = ih_item_len(ih); in reiserfs_insert_item()
2207 if (!S_ISLNK(inode->i_mode) && is_direct_le_ih(ih)) in reiserfs_insert_item()
2212 quota_bytes, inode->i_uid, head2type(ih)); in reiserfs_insert_item()
2227 IH_SIZE + ih_item_len(ih)); in reiserfs_insert_item()
2240 fix_nodes(M_INSERT, &s_ins_balance, ih, in reiserfs_insert_item()
2261 do_balance(&s_ins_balance, ih, body, M_INSERT); in reiserfs_insert_item()
2273 quota_bytes, inode->i_uid, head2type(ih)); in reiserfs_insert_item()