Searched refs:iref (Results 1 - 12 of 12) sorted by relevance

/linux-master/fs/btrfs/
H A Dprint-tree.c96 struct btrfs_extent_inline_ref *iref; local
131 iref = (struct btrfs_extent_inline_ref *)(info + 1);
133 iref = (struct btrfs_extent_inline_ref *)(ei + 1);
136 ptr = (unsigned long)iref;
139 iref = (struct btrfs_extent_inline_ref *)ptr;
140 type = btrfs_extent_inline_ref_type(eb, iref);
141 offset = btrfs_extent_inline_ref_offset(eb, iref);
159 dref = (struct btrfs_extent_data_ref *)(&iref->offset);
163 sref = (struct btrfs_shared_data_ref *)(iref + 1);
176 oref = (struct btrfs_extent_owner_ref *)(&iref
[all...]
H A Dextent-tree.c349 struct btrfs_extent_inline_ref *iref,
353 int type = btrfs_extent_inline_ref_type(eb, iref);
354 u64 offset = btrfs_extent_inline_ref_offset(eb, iref);
399 "eb %llu iref 0x%lx invalid extent inline ref type %d",
400 eb->start, (unsigned long)iref, type);
642 struct btrfs_extent_inline_ref *iref)
654 if (iref) {
659 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA);
662 ref1 = (struct btrfs_extent_data_ref *)(&iref->offset);
665 ref2 = (struct btrfs_shared_data_ref *)(iref
348 btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, struct btrfs_extent_inline_ref *iref, enum btrfs_inline_ref_type is_data) argument
641 extent_data_ref_count(struct btrfs_path *path, struct btrfs_extent_inline_ref *iref) argument
793 struct btrfs_extent_inline_ref *iref; local
991 setup_inline_extent_backref(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_extent_inline_ref *iref, u64 parent, u64 root_objectid, u64 owner, u64 offset, int refs_to_add, struct btrfs_delayed_extent_op *extent_op) argument
1081 update_inline_extent_backref( struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_extent_inline_ref *iref, int refs_to_mod, struct btrfs_delayed_extent_op *extent_op) argument
1205 struct btrfs_extent_inline_ref *iref; local
1234 remove_extent_backref(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_extent_inline_ref *iref, int refs_to_drop, int is_data) argument
2384 struct btrfs_extent_inline_ref *iref; local
2962 struct btrfs_extent_inline_ref *iref; local
3113 struct btrfs_extent_inline_ref *iref; local
4824 struct btrfs_extent_inline_ref *iref; local
4899 struct btrfs_extent_inline_ref *iref; local
5424 struct btrfs_extent_inline_ref *iref; local
[all...]
H A Dexport.c227 struct btrfs_inode_ref *iref; local
276 iref = btrfs_item_ptr(leaf, path->slots[0],
278 name_ptr = (unsigned long)(iref + 1);
279 name_len = btrfs_inode_ref_name_len(leaf, iref);
H A Dtree-checker.c1422 struct btrfs_extent_inline_ref *iref; local
1430 if (unlikely(ptr + sizeof(*iref) > end)) {
1432 "inline ref item overflows extent item, ptr %lu iref size %zu end %lu",
1433 ptr, sizeof(*iref), end);
1436 iref = (struct btrfs_extent_inline_ref *)ptr;
1437 inline_type = btrfs_extent_inline_ref_type(leaf, iref);
1438 inline_offset = btrfs_extent_inline_ref_offset(leaf, iref);
1442 "inline ref item overflows extent item, ptr %lu iref size %u end %lu",
1468 dref = (struct btrfs_extent_data_ref *)(&iref->offset);
1485 sref = (struct btrfs_shared_data_ref *)(iref
1636 struct btrfs_inode_ref *iref; local
[all...]
H A Dref-verify.c437 struct btrfs_extent_inline_ref *iref; local
455 iref = (struct btrfs_extent_inline_ref *)(info + 1);
459 iref = (struct btrfs_extent_inline_ref *)(ei + 1);
462 ptr = (unsigned long)iref;
465 iref = (struct btrfs_extent_inline_ref *)ptr;
466 type = btrfs_extent_inline_ref_type(leaf, iref);
467 offset = btrfs_extent_inline_ref_offset(leaf, iref);
478 dref = (struct btrfs_extent_data_ref *)(&iref->offset);
483 sref = (struct btrfs_shared_data_ref *)(iref + 1);
492 btrfs_err(fs_info, "invalid key type in iref");
[all...]
H A Dextent-tree.h101 struct btrfs_extent_inline_ref *iref,
H A Dbackref.c1065 struct btrfs_extent_inline_ref *iref; local
1069 iref = (struct btrfs_extent_inline_ref *)ptr;
1070 type = btrfs_get_extent_inline_ref_type(leaf, iref,
1075 offset = btrfs_extent_inline_ref_offset(leaf, iref);
1087 sdref = (struct btrfs_shared_data_ref *)(iref + 1);
1104 dref = (struct btrfs_extent_data_ref *)(&iref->offset);
2118 * this iterates to turn a name (from iref/extref) into a full filesystem path.
2142 struct btrfs_inode_ref *iref; local
2178 iref = btrfs_item_ptr(eb, slot, struct btrfs_inode_ref);
2180 name_len = btrfs_inode_ref_name_len(eb, iref);
2599 struct btrfs_inode_ref *iref; local
2975 struct btrfs_extent_inline_ref *iref; local
3526 struct btrfs_extent_inline_ref *iref; local
[all...]
H A Dioctl.c1848 struct btrfs_inode_ref *iref; local
1886 iref = btrfs_item_ptr(l, slot, struct btrfs_inode_ref);
1887 len = btrfs_inode_ref_name_len(l, iref);
1896 read_extent_buffer(l, ptr, (unsigned long)(iref + 1), len);
1926 struct btrfs_inode_ref *iref; local
1971 iref = btrfs_item_ptr(leaf, slot, struct btrfs_inode_ref);
1972 len = btrfs_inode_ref_name_len(leaf, iref);
1982 (unsigned long)(iref + 1), len);
H A Dsend.c999 struct btrfs_inode_ref *iref; local
1031 elem_size = sizeof(*iref);
1042 iref = (struct btrfs_inode_ref *)(ptr + cur);
1043 name_len = btrfs_inode_ref_name_len(eb, iref);
1044 name_off = (unsigned long)(iref + 1);
1045 index = btrfs_inode_ref_index(eb, iref);
2060 struct btrfs_inode_ref *iref; local
2061 iref = btrfs_item_ptr(path->nodes[0], path->slots[0],
2063 len = btrfs_inode_ref_name_len(path->nodes[0], iref);
2065 (unsigned long)(iref
[all...]
H A Drelocation.c3281 struct btrfs_extent_inline_ref *iref; local
3284 iref = (struct btrfs_extent_inline_ref *)ptr;
3285 type = btrfs_get_extent_inline_ref_type(eb, iref,
3290 owner = btrfs_extent_inline_ref_offset(eb, iref);
H A Dtree-log.c5283 struct btrfs_inode_ref *iref; local
5285 iref = (struct btrfs_inode_ref *)(ptr + cur_offset);
5287 this_name_len = btrfs_inode_ref_name_len(eb, iref);
5288 name_ptr = (unsigned long)(iref + 1);
5289 this_len = sizeof(*iref) + this_name_len;
/linux-master/fs/btrfs/tests/
H A Dqgroup-tests.c21 struct btrfs_extent_inline_ref *iref; local
26 u32 size = sizeof(*item) + sizeof(*iref) + sizeof(*block_info);
55 iref = (struct btrfs_extent_inline_ref *)(block_info + 1);
57 btrfs_set_extent_inline_ref_type(leaf, iref,
59 btrfs_set_extent_inline_ref_offset(leaf, iref, parent);
61 btrfs_set_extent_inline_ref_type(leaf, iref, BTRFS_TREE_BLOCK_REF_KEY);
62 btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid);

Completed in 183 milliseconds