• Home
  • Raw
  • Download

Lines Matching refs:ih

106 inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key,  in make_le_item_head()  argument
112 ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id); in make_le_item_head()
113 ih->ih_key.k_objectid = in make_le_item_head()
116 put_ih_version(ih, version); in make_le_item_head()
117 set_le_ih_k_offset(ih, offset); in make_le_item_head()
118 set_le_ih_k_type(ih, type); in make_le_item_head()
119 put_ih_item_len(ih, length); in make_le_item_head()
123 put_ih_entry_count(ih, entry_count); in make_le_item_head()
178 struct item_head *ih, in allocation_needed() argument
183 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed()
189 static inline int indirect_item_found(int retval, struct item_head *ih) in indirect_item_found() argument
191 return (retval == POSITION_FOUND) && is_indirect_le_ih(ih); in indirect_item_found()
253 struct item_head *ih, tmp_ih; in _get_block_create_0() local
286 ih = get_ih(&path); in _get_block_create_0()
287 if (is_indirect_le_ih(ih)) { in _get_block_create_0()
288 __le32 *ind_item = (__le32 *) B_I_PITEM(bh, ih); in _get_block_create_0()
298 ((ih_item_len(ih) / UNFM_P_SIZE) - 1)) { in _get_block_create_0()
344 copy_item_head(&tmp_ih, ih); in _get_block_create_0()
361 if (!is_direct_le_ih(ih)) { in _get_block_create_0()
369 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0()
371 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { in _get_block_create_0()
373 inode->i_size - (le_ih_k_offset(ih) - 1) - in _get_block_create_0()
377 chars = ih_item_len(ih) - path.pos_in_item; in _get_block_create_0()
379 memcpy(p, B_I_PITEM(bh, ih) + path.pos_in_item, chars); in _get_block_create_0()
400 ih = get_ih(&path); in _get_block_create_0()
600 struct item_head *ih, tmp_ih; in reiserfs_get_block() local
676 ih = get_ih(&path); in reiserfs_get_block()
681 copy_item_head(&tmp_ih, ih); in reiserfs_get_block()
684 (retval, allocated_block_nr, ih, item, pos_in_item)) { in reiserfs_get_block()
724 if (indirect_item_found(retval, ih)) { in reiserfs_get_block()
773 if (is_statdata_le_ih(ih)) { in reiserfs_get_block()
804 } else if (is_direct_le_ih(ih)) { in reiserfs_get_block()
809 ((le_ih_k_offset(ih) - in reiserfs_get_block()
914 RFALSE(pos_in_item != ih_item_len(ih) / UNFM_P_SIZE, in reiserfs_get_block()
919 &(ih->ih_key)) + in reiserfs_get_block()
920 op_bytes_number(ih, in reiserfs_get_block()
1020 ih = get_ih(&path); in reiserfs_get_block()
1117 struct item_head *ih; in init_inode() local
1122 ih = PATH_PITEM_HEAD(path); in init_inode()
1124 copy_key(INODE_PKEY(inode), &(ih->ih_key)); in init_inode()
1137 if (stat_data_v1(ih)) { in init_inode()
1139 (struct stat_data_v1 *)B_I_PITEM(bh, ih); in init_inode()
1187 struct stat_data *sd = (struct stat_data *)B_I_PITEM(bh, ih); in init_inode()
1296 struct item_head *ih; in update_stat_data() local
1299 ih = PATH_PITEM_HEAD(path); in update_stat_data()
1301 if (!is_statdata_le_ih(ih)) in update_stat_data()
1304 INODE_PKEY(inode), ih); in update_stat_data()
1306 if (stat_data_v1(ih)) { in update_stat_data()
1308 inode2sd_v1(B_I_PITEM(bh, ih), inode, size); in update_stat_data()
1310 inode2sd(B_I_PITEM(bh, ih), inode, size); in update_stat_data()
1323 struct item_head *ih, tmp_ih; in reiserfs_update_sd_size() local
1362 ih = get_ih(&path); in reiserfs_update_sd_size()
1363 copy_item_head(&tmp_ih, ih); in reiserfs_update_sd_size()
1644 struct item_head *ih, struct treepath *path, in reiserfs_new_directory() argument
1655 _make_cpu_key(&key, KEY_FORMAT_3_5, le32_to_cpu(ih->ih_key.k_dir_id), in reiserfs_new_directory()
1656 le32_to_cpu(ih->ih_key.k_objectid), DOT_OFFSET, in reiserfs_new_directory()
1663 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, DOT_OFFSET, in reiserfs_new_directory()
1666 make_empty_dir_item_v1(body, ih->ih_key.k_dir_id, in reiserfs_new_directory()
1667 ih->ih_key.k_objectid, in reiserfs_new_directory()
1671 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, DOT_OFFSET, in reiserfs_new_directory()
1674 make_empty_dir_item(body, ih->ih_key.k_dir_id, in reiserfs_new_directory()
1675 ih->ih_key.k_objectid, in reiserfs_new_directory()
1691 &(ih->ih_key)); in reiserfs_new_directory()
1696 return reiserfs_insert_item(th, path, &key, ih, inode, body); in reiserfs_new_directory()
1702 struct item_head *ih, in reiserfs_new_symlink() argument
1713 le32_to_cpu(ih->ih_key.k_dir_id), in reiserfs_new_symlink()
1714 le32_to_cpu(ih->ih_key.k_objectid), in reiserfs_new_symlink()
1717 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, 1, TYPE_DIRECT, item_len, in reiserfs_new_symlink()
1731 &(ih->ih_key)); in reiserfs_new_symlink()
1736 return reiserfs_insert_item(th, path, &key, ih, inode, symname); in reiserfs_new_symlink()
1759 struct item_head ih; in reiserfs_new_inode() local
1778 ih.ih_key.k_dir_id = reiserfs_choose_packing(dir); in reiserfs_new_inode()
1779 ih.ih_key.k_objectid = cpu_to_le32(reiserfs_get_unused_objectid(th)); in reiserfs_new_inode()
1780 if (!ih.ih_key.k_objectid) { in reiserfs_new_inode()
1784 args.objectid = inode->i_ino = le32_to_cpu(ih.ih_key.k_objectid); in reiserfs_new_inode()
1786 make_le_item_head(&ih, NULL, KEY_FORMAT_3_5, SD_OFFSET, in reiserfs_new_inode()
1789 make_le_item_head(&ih, NULL, KEY_FORMAT_3_6, SD_OFFSET, in reiserfs_new_inode()
1791 memcpy(INODE_PKEY(inode), &(ih.ih_key), KEY_SIZE); in reiserfs_new_inode()
1792 args.dirid = le32_to_cpu(ih.ih_key.k_dir_id); in reiserfs_new_inode()
1844 _make_cpu_key(&key, KEY_FORMAT_3_6, le32_to_cpu(ih.ih_key.k_dir_id), in reiserfs_new_inode()
1845 le32_to_cpu(ih.ih_key.k_objectid), SD_OFFSET, in reiserfs_new_inode()
1888 reiserfs_insert_item(th, &path_to_key, &key, &ih, inode, in reiserfs_new_inode()
1902 reiserfs_new_directory(th, inode, &ih, &path_to_key, dir); in reiserfs_new_inode()
1910 reiserfs_new_symlink(th, inode, &ih, &path_to_key, symname, in reiserfs_new_inode()
2170 struct item_head *ih; in map_block_for_writepage() local
2204 ih = get_ih(&path); in map_block_for_writepage()
2209 if (indirect_item_found(retval, ih)) { in map_block_for_writepage()
2222 } else if (is_direct_le_ih(ih)) { in map_block_for_writepage()
2226 copy_size = ih_item_len(ih) - pos_in_item; in map_block_for_writepage()
2229 copy_item_head(&tmp_ih, ih); in map_block_for_writepage()
2254 memcpy(B_I_PITEM(bh, ih) + pos_in_item, p + bytes_copied, in map_block_for_writepage()