Home
last modified time | relevance | path

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

/Linux-v4.19/fs/btrfs/
Dprint-tree.c44 struct btrfs_extent_inline_ref *iref; in print_extent_item() local
76 iref = (struct btrfs_extent_inline_ref *)(info + 1); in print_extent_item()
78 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item()
81 ptr = (unsigned long)iref; in print_extent_item()
84 iref = (struct btrfs_extent_inline_ref *)ptr; in print_extent_item()
85 type = btrfs_extent_inline_ref_type(eb, iref); in print_extent_item()
86 offset = btrfs_extent_inline_ref_offset(eb, iref); in print_extent_item()
103 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in print_extent_item()
107 sref = (struct btrfs_shared_data_ref *)(iref + 1); in print_extent_item()
Dexport.c231 struct btrfs_inode_ref *iref; in btrfs_get_name() local
281 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
283 name_ptr = (unsigned long)(iref + 1); in btrfs_get_name()
284 name_len = btrfs_inode_ref_name_len(leaf, iref); in btrfs_get_name()
Dbackref.c920 struct btrfs_extent_inline_ref *iref; in add_inline_refs() local
924 iref = (struct btrfs_extent_inline_ref *)ptr; in add_inline_refs()
925 type = btrfs_get_extent_inline_ref_type(leaf, iref, in add_inline_refs()
930 offset = btrfs_extent_inline_ref_offset(leaf, iref); in add_inline_refs()
942 sdref = (struct btrfs_shared_data_ref *)(iref + 1); in add_inline_refs()
959 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in add_inline_refs()
1617 struct btrfs_inode_ref *iref; local
1656 iref = btrfs_item_ptr(eb, slot, struct btrfs_inode_ref);
1658 name_len = btrfs_inode_ref_name_len(eb, iref);
1659 name_off = (unsigned long)(iref + 1);
[all …]
Dref-verify.c443 struct btrfs_extent_inline_ref *iref; in process_extent_item() local
461 iref = (struct btrfs_extent_inline_ref *)(info + 1); in process_extent_item()
465 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in process_extent_item()
468 ptr = (unsigned long)iref; in process_extent_item()
471 iref = (struct btrfs_extent_inline_ref *)ptr; in process_extent_item()
472 type = btrfs_extent_inline_ref_type(leaf, iref); in process_extent_item()
473 offset = btrfs_extent_inline_ref_offset(leaf, iref); in process_extent_item()
484 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in process_extent_item()
489 sref = (struct btrfs_shared_data_ref *)(iref + 1); in process_extent_item()
Dextent-tree.c1044 struct btrfs_extent_inline_ref *iref, in btrfs_get_extent_inline_ref_type() argument
1047 int type = btrfs_extent_inline_ref_type(eb, iref); in btrfs_get_extent_inline_ref_type()
1048 u64 offset = btrfs_extent_inline_ref_offset(eb, iref); in btrfs_get_extent_inline_ref_type()
1333 struct btrfs_extent_inline_ref *iref) in extent_data_ref_count() argument
1346 if (iref) { in extent_data_ref_count()
1351 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); in extent_data_ref_count()
1354 ref1 = (struct btrfs_extent_data_ref *)(&iref->offset); in extent_data_ref_count()
1357 ref2 = (struct btrfs_shared_data_ref *)(iref + 1); in extent_data_ref_count()
1485 struct btrfs_extent_inline_ref *iref; in lookup_inline_extent_backref() local
1588 iref = (struct btrfs_extent_inline_ref *)ptr; in lookup_inline_extent_backref()
[all …]
Drelocation.c765 struct btrfs_extent_inline_ref *iref; in build_backref_tree() local
767 iref = (struct btrfs_extent_inline_ref *)ptr; in build_backref_tree()
768 type = btrfs_get_extent_inline_ref_type(eb, iref, in build_backref_tree()
775 key.offset = btrfs_extent_inline_ref_offset(eb, iref); in build_backref_tree()
3678 struct btrfs_extent_inline_ref *iref; in add_data_references() local
3691 iref = (struct btrfs_extent_inline_ref *)ptr; in add_data_references()
3692 key.type = btrfs_get_extent_inline_ref_type(eb, iref, in add_data_references()
3695 key.offset = btrfs_extent_inline_ref_offset(eb, iref); in add_data_references()
3699 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in add_data_references()
Dsend.c872 struct btrfs_inode_ref *iref; in iterate_inode_ref() local
905 elem_size = sizeof(*iref); in iterate_inode_ref()
916 iref = (struct btrfs_inode_ref *)(ptr + cur); in iterate_inode_ref()
917 name_len = btrfs_inode_ref_name_len(eb, iref); in iterate_inode_ref()
918 name_off = (unsigned long)(iref + 1); in iterate_inode_ref()
919 index = btrfs_inode_ref_index(eb, iref); in iterate_inode_ref()
1753 struct btrfs_inode_ref *iref; in get_first_ref() local
1754 iref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
1756 len = btrfs_inode_ref_name_len(path->nodes[0], iref); in get_first_ref()
1758 (unsigned long)(iref + 1), in get_first_ref()
Dioctl.c2271 struct btrfs_inode_ref *iref; in btrfs_search_path_in_tree() local
2318 iref = btrfs_item_ptr(l, slot, struct btrfs_inode_ref); in btrfs_search_path_in_tree()
2319 len = btrfs_inode_ref_name_len(l, iref); in btrfs_search_path_in_tree()
2328 read_extent_buffer(l, ptr, (unsigned long)(iref + 1), len); in btrfs_search_path_in_tree()
2356 struct btrfs_inode_ref *iref; in btrfs_search_path_in_tree_user() local
2411 iref = btrfs_item_ptr(leaf, slot, struct btrfs_inode_ref); in btrfs_search_path_in_tree_user()
2412 len = btrfs_inode_ref_name_len(leaf, iref); in btrfs_search_path_in_tree_user()
2422 (unsigned long)(iref + 1), len); in btrfs_search_path_in_tree_user()
Dtree-log.c4732 struct btrfs_inode_ref *iref; in btrfs_check_ref_name_override() local
4734 iref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_check_ref_name_override()
4736 this_name_len = btrfs_inode_ref_name_len(eb, iref); in btrfs_check_ref_name_override()
4737 name_ptr = (unsigned long)(iref + 1); in btrfs_check_ref_name_override()
4738 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
Dfree-space-cache.c109 if (!block_group->iref) { in lookup_free_space_inode()
111 block_group->iref = 1; in lookup_free_space_inode()
Dctree.h601 unsigned int iref:1; member
2589 struct btrfs_extent_inline_ref *iref,
/Linux-v4.19/fs/btrfs/tests/
Dqgroup-tests.c19 struct btrfs_extent_inline_ref *iref; in insert_normal_tree_ref() local
24 u32 size = sizeof(*item) + sizeof(*iref) + sizeof(*block_info); in insert_normal_tree_ref()
54 iref = (struct btrfs_extent_inline_ref *)(block_info + 1); in insert_normal_tree_ref()
56 btrfs_set_extent_inline_ref_type(leaf, iref, in insert_normal_tree_ref()
58 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in insert_normal_tree_ref()
60 btrfs_set_extent_inline_ref_type(leaf, iref, BTRFS_TREE_BLOCK_REF_KEY); in insert_normal_tree_ref()
61 btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid); in insert_normal_tree_ref()