Home | History | Annotate | Download | only in linux

Lines Matching refs:ih

493 #define ih_free_space(ih)            le16_to_cpu((ih)->u.ih_free_space_reserved)
494 #define ih_version(ih) le16_to_cpu((ih)->ih_version)
495 #define ih_entry_count(ih) le16_to_cpu((ih)->u.ih_entry_count)
496 #define ih_location(ih) le16_to_cpu((ih)->ih_item_location)
497 #define ih_item_len(ih) le16_to_cpu((ih)->ih_item_len)
499 #define put_ih_free_space(ih, val) do { (ih)->u.ih_free_space_reserved = cpu_to_le16(val); } while(0)
500 #define put_ih_version(ih, val) do { (ih)->ih_version = cpu_to_le16(val); } while (0)
501 #define put_ih_entry_count(ih, val) do { (ih)->u.ih_entry_count = cpu_to_le16(val); } while (0)
502 #define put_ih_location(ih, val) do { (ih)->ih_item_location = cpu_to_le16(val); } while (0)
503 #define put_ih_item_len(ih, val) do { (ih)->ih_item_len = cpu_to_le16(val); } while (0)
505 #define unreachable_item(ih) (ih_version(ih) & (1 << 15))
507 #define get_ih_free_space(ih) (ih_version (ih) == KEY_FORMAT_3_6 ? 0 : ih_free_space (ih))
508 #define set_ih_free_space(ih,val) put_ih_free_space((ih), ((ih_version(ih) == KEY_FORMAT_3_6) ? 0 : (val)))
583 static __inline__ loff_t le_ih_k_offset(const struct item_head *ih)
585 return le_key_k_offset(ih_version(ih), &(ih->ih_key));
595 static __inline__ loff_t le_ih_k_type(const struct item_head *ih)
597 return le_key_k_type(ih_version(ih), &(ih->ih_key));
607 static __inline__ void set_le_ih_k_offset(struct item_head *ih, loff_t offset)
609 set_le_key_k_offset(ih_version(ih), &(ih->ih_key), offset);
620 static __inline__ void set_le_ih_k_type(struct item_head *ih, int type)
622 set_le_key_k_type(ih_version(ih), &(ih->ih_key), type);
633 #define is_direntry_le_ih(ih) is_direntry_le_key (ih_version (ih), &((ih)->ih_key))
634 #define is_direct_le_ih(ih) is_direct_le_key (ih_version (ih), &((ih)->ih_key))
635 #define is_indirect_le_ih(ih) is_indirect_le_key (ih_version(ih), &((ih)->ih_key))
636 #define is_statdata_le_ih(ih) is_statdata_le_key (ih_version (ih), &((ih)->ih_key))
672 #define is_direntry_cpu_ih(ih) (is_direntry_cpu_key (&((ih)->ih_key)))
673 #define is_direct_cpu_ih(ih) (is_direct_cpu_key (&((ih)->ih_key)))
674 #define is_indirect_cpu_ih(ih) (is_indirect_cpu_key (&((ih)->ih_key)))
675 #define is_statdata_cpu_ih(ih) (is_statdata_cpu_key (&((ih)->ih_key)))
787 #define stat_data_v1(ih) (ih_version (ih) == KEY_FORMAT_3_5)
868 #define stat_data_v2(ih) (ih_version (ih) == KEY_FORMAT_3_6)
1003 #define B_I_PITEM(bh,ih) ( (bh)->b_data + ih_location(ih) )
1004 #define B_I_DEH(bh,ih) ((struct reiserfs_de_head *)(B_I_PITEM(bh,ih)))
1013 #define I_DEH_N_ENTRY_LENGTH(ih,deh,i) \
1014 ((i) ? (deh_location((deh)-1) - deh_location((deh))) : (ih_item_len((ih)) - deh_location((deh))))
1017 const struct item_head *ih, int pos_in_item)
1021 deh = B_I_DEH(bh, ih) + pos_in_item;
1025 return ih_item_len(ih) - deh_location(deh);
1029 #define I_ENTRY_COUNT(ih) (ih_entry_count((ih)))
1031 /* name by bh, ih and entry_num */
1032 #define B_I_E_NAME(bh,ih,entry_num) ((char *)(bh->b_data + ih_location(ih) + deh_location(B_I_DEH(bh,ih)+(entry_num))))
1061 #define B_I_DEH_ENTRY_FILE_NAME(bh,ih,deh) (B_I_PITEM (bh, ih) + deh_location(deh))
1064 #define I_DEH_N_ENTRY_FILE_NAME_LENGTH(ih,deh,entry_num) \
1065 (I_DEH_N_ENTRY_LENGTH (ih, deh, entry_num) - (de_with_sd (deh) ? SD_SIZE : 0))
1210 #define item_moved(ih,path) comp_items(ih, path)
1211 #define path_changed(ih,path) comp_items (ih, path)
1451 int (*bytes_number) (struct item_head * ih, int block_size);
1453 int (*is_left_mergeable) (struct reiserfs_key * ih,
1470 #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize)
1472 #define op_print_item(ih,item) item_ops[le_ih_k_type (ih)]->print_item (ih, item)
1473 #define op_check_item(ih,item) item_ops[le_ih_k_type (ih)]->check_item (ih, item)
1486 /* the used space within the unformatted node corresponding to pos within the item pointed to by ih */
1487 #define I_POS_UNFM_SIZE(ih,pos,size) (((pos) == I_UNFM_NUM(ih) - 1 ) ? (size) - ih_free_space(ih) : (size))
1510 #define B_I_STAT_DATA(bh, ih) ( (struct stat_data * )((bh)->b_data + ih_location(ih)) )
1518 #define B_I_POS_UNFM_POINTER(bh,ih,pos) le32_to_cpu(*(((unp_t *)B_I_PITEM(bh,ih)) + (pos)))
1519 #define PUT_B_I_POS_UNFM_POINTER(bh,ih,pos, val) do {*(((unp_t *)B_I_PITEM(bh,ih)) + (pos)) = cpu_to_le32(val); } while (0)
1815 struct item_head *ih,
1879 void make_le_item_head(struct item_head *ih, const struct cpu_key *key,
2025 void do_balance(struct tree_balance *tb, struct item_head *ih,