• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/

Lines Matching defs:ih

119 inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key,
125 ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id);
126 ih->ih_key.k_objectid =
129 put_ih_version(ih, version);
130 set_le_ih_k_offset(ih, offset);
131 set_le_ih_k_type(ih, type);
132 put_ih_item_len(ih, length);
133 /* set_ih_free_space (ih, 0); */
136 put_ih_entry_count(ih, entry_count);
190 struct item_head *ih,
195 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) &&
201 static inline int indirect_item_found(int retval, struct item_head *ih)
203 return (retval == POSITION_FOUND) && is_indirect_le_ih(ih);
265 struct item_head *ih, tmp_ih;
296 ih = get_ih(&path);
297 if (is_indirect_le_ih(ih)) {
298 __le32 *ind_item = (__le32 *) B_I_PITEM(bh, ih);
305 ((ih_item_len(ih) / UNFM_P_SIZE) - 1)) {
349 copy_item_head(&tmp_ih, ih);
362 if (!is_direct_le_ih(ih)) {
370 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size)
372 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) {
374 inode->i_size - (le_ih_k_offset(ih) - 1) -
378 chars = ih_item_len(ih) - path.pos_in_item;
380 memcpy(p, B_I_PITEM(bh, ih) + path.pos_in_item, chars);
400 ih = get_ih(&path);
604 struct item_head *ih, tmp_ih;
674 ih = get_ih(&path);
679 copy_item_head(&tmp_ih, ih);
682 (retval, allocated_block_nr, ih, item, pos_in_item)) {
722 if (indirect_item_found(retval, ih)) {
771 if (is_statdata_le_ih(ih)) {
802 } else if (is_direct_le_ih(ih)) {
807 ((le_ih_k_offset(ih) -
911 RFALSE(pos_in_item != ih_item_len(ih) / UNFM_P_SIZE,
916 &(ih->ih_key)) +
917 op_bytes_number(ih,
1022 ih = get_ih(&path);
1119 struct item_head *ih;
1124 ih = PATH_PITEM_HEAD(path);
1126 copy_key(INODE_PKEY(inode), &(ih->ih_key));
1136 if (stat_data_v1(ih)) {
1138 (struct stat_data_v1 *)B_I_PITEM(bh, ih);
1186 struct stat_data *sd = (struct stat_data *)B_I_PITEM(bh, ih);
1295 struct item_head *ih;
1298 ih = PATH_PITEM_HEAD(path);
1300 if (!is_statdata_le_ih(ih))
1302 INODE_PKEY(inode), ih);
1304 if (stat_data_v1(ih)) {
1306 inode2sd_v1(B_I_PITEM(bh, ih), inode, size);
1308 inode2sd(B_I_PITEM(bh, ih), inode, size);
1321 struct item_head *ih, tmp_ih;
1359 ih = get_ih(&path);
1360 copy_item_head(&tmp_ih, ih);
1641 struct item_head *ih, struct treepath *path,
1652 _make_cpu_key(&key, KEY_FORMAT_3_5, le32_to_cpu(ih->ih_key.k_dir_id),
1653 le32_to_cpu(ih->ih_key.k_objectid), DOT_OFFSET,
1660 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, DOT_OFFSET,
1663 make_empty_dir_item_v1(body, ih->ih_key.k_dir_id,
1664 ih->ih_key.k_objectid,
1668 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, DOT_OFFSET,
1671 make_empty_dir_item(body, ih->ih_key.k_dir_id,
1672 ih->ih_key.k_objectid,
1688 &(ih->ih_key));
1693 return reiserfs_insert_item(th, path, &key, ih, inode, body);
1699 struct item_head *ih,
1710 le32_to_cpu(ih->ih_key.k_dir_id),
1711 le32_to_cpu(ih->ih_key.k_objectid),
1714 make_le_item_head(ih, NULL, KEY_FORMAT_3_5, 1, TYPE_DIRECT, item_len,
1728 &(ih->ih_key));
1733 return reiserfs_insert_item(th, path, &key, ih, inode, symname);
1757 struct item_head ih;
1776 ih.ih_key.k_dir_id = reiserfs_choose_packing(dir);
1777 ih.ih_key.k_objectid = cpu_to_le32(reiserfs_get_unused_objectid(th));
1778 if (!ih.ih_key.k_objectid) {
1782 args.objectid = inode->i_ino = le32_to_cpu(ih.ih_key.k_objectid);
1784 make_le_item_head(&ih, NULL, KEY_FORMAT_3_5, SD_OFFSET,
1787 make_le_item_head(&ih, NULL, KEY_FORMAT_3_6, SD_OFFSET,
1789 memcpy(INODE_PKEY(inode), &(ih.ih_key), KEY_SIZE);
1790 args.dirid = le32_to_cpu(ih.ih_key.k_dir_id);
1839 _make_cpu_key(&key, KEY_FORMAT_3_6, le32_to_cpu(ih.ih_key.k_dir_id),
1840 le32_to_cpu(ih.ih_key.k_objectid), SD_OFFSET,
1883 reiserfs_insert_item(th, &path_to_key, &key, &ih, inode,
1897 reiserfs_new_directory(th, inode, &ih, &path_to_key, dir);
1905 reiserfs_new_symlink(th, inode, &ih, &path_to_key, symname,
2168 struct item_head *ih;
2202 ih = get_ih(&path);
2207 if (indirect_item_found(retval, ih)) {
2219 } else if (is_direct_le_ih(ih)) {
2223 copy_size = ih_item_len(ih) - pos_in_item;
2226 copy_item_head(&tmp_ih, ih);
2251 memcpy(B_I_PITEM(bh, ih) + pos_in_item, p + bytes_copied,