/Linux-v5.15/fs/btrfs/ |
D | print-tree.c | 82 struct btrfs_extent_inline_ref *iref; in print_extent_item() local 114 iref = (struct btrfs_extent_inline_ref *)(info + 1); in print_extent_item() 116 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item() 119 ptr = (unsigned long)iref; in print_extent_item() 122 iref = (struct btrfs_extent_inline_ref *)ptr; in print_extent_item() 123 type = btrfs_extent_inline_ref_type(eb, iref); in print_extent_item() 124 offset = btrfs_extent_inline_ref_offset(eb, iref); in print_extent_item() 142 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in print_extent_item() 146 sref = (struct btrfs_shared_data_ref *)(iref + 1); in print_extent_item()
|
D | extent-tree.c | 354 struct btrfs_extent_inline_ref *iref, in btrfs_get_extent_inline_ref_type() argument 357 int type = btrfs_extent_inline_ref_type(eb, iref); in btrfs_get_extent_inline_ref_type() 358 u64 offset = btrfs_extent_inline_ref_offset(eb, iref); in btrfs_get_extent_inline_ref_type() 399 eb->start, (unsigned long)iref, type); in btrfs_get_extent_inline_ref_type() 642 struct btrfs_extent_inline_ref *iref) in extent_data_ref_count() argument 655 if (iref) { in extent_data_ref_count() 660 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); in extent_data_ref_count() 663 ref1 = (struct btrfs_extent_data_ref *)(&iref->offset); in extent_data_ref_count() 666 ref2 = (struct btrfs_shared_data_ref *)(iref + 1); in extent_data_ref_count() 794 struct btrfs_extent_inline_ref *iref; in lookup_inline_extent_backref() local [all …]
|
D | tree-checker.c | 1336 struct btrfs_extent_inline_ref *iref; in check_extent_item() local 1343 if (unlikely(ptr + sizeof(*iref) > end)) { in check_extent_item() 1346 ptr, sizeof(*iref), end); in check_extent_item() 1349 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item() 1350 inline_type = btrfs_extent_inline_ref_type(leaf, iref); in check_extent_item() 1351 inline_offset = btrfs_extent_inline_ref_offset(leaf, iref); in check_extent_item() 1380 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in check_extent_item() 1393 sref = (struct btrfs_shared_data_ref *)(iref + 1); in check_extent_item() 1503 struct btrfs_inode_ref *iref; in check_inode_ref() local 1510 if (unlikely(btrfs_item_size_nr(leaf, slot) <= sizeof(*iref))) { in check_inode_ref() [all …]
|
D | export.c | 208 struct btrfs_inode_ref *iref; in btrfs_get_name() local 257 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name() 259 name_ptr = (unsigned long)(iref + 1); in btrfs_get_name() 260 name_len = btrfs_inode_ref_name_len(leaf, iref); in btrfs_get_name()
|
D | backref.c | 978 struct btrfs_extent_inline_ref *iref; in add_inline_refs() local 982 iref = (struct btrfs_extent_inline_ref *)ptr; in add_inline_refs() 983 type = btrfs_get_extent_inline_ref_type(leaf, iref, in add_inline_refs() 988 offset = btrfs_extent_inline_ref_offset(leaf, iref); in add_inline_refs() 1000 sdref = (struct btrfs_shared_data_ref *)(iref + 1); in add_inline_refs() 1017 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in add_inline_refs() 1679 struct btrfs_inode_ref *iref; local 1715 iref = btrfs_item_ptr(eb, slot, struct btrfs_inode_ref); 1717 name_len = btrfs_inode_ref_name_len(eb, iref); 1718 name_off = (unsigned long)(iref + 1); [all …]
|
D | ref-verify.c | 434 struct btrfs_extent_inline_ref *iref; in process_extent_item() local 452 iref = (struct btrfs_extent_inline_ref *)(info + 1); in process_extent_item() 456 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in process_extent_item() 459 ptr = (unsigned long)iref; in process_extent_item() 462 iref = (struct btrfs_extent_inline_ref *)ptr; in process_extent_item() 463 type = btrfs_extent_inline_ref_type(leaf, iref); in process_extent_item() 464 offset = btrfs_extent_inline_ref_offset(leaf, iref); in process_extent_item() 475 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in process_extent_item() 480 sref = (struct btrfs_shared_data_ref *)(iref + 1); in process_extent_item()
|
D | block-group.h | 95 unsigned int iref:1; member
|
D | ioctl.c | 2375 struct btrfs_inode_ref *iref; in btrfs_search_path_in_tree() local 2413 iref = btrfs_item_ptr(l, slot, struct btrfs_inode_ref); in btrfs_search_path_in_tree() 2414 len = btrfs_inode_ref_name_len(l, iref); in btrfs_search_path_in_tree() 2423 read_extent_buffer(l, ptr, (unsigned long)(iref + 1), len); in btrfs_search_path_in_tree() 2453 struct btrfs_inode_ref *iref; in btrfs_search_path_in_tree_user() local 2498 iref = btrfs_item_ptr(leaf, slot, struct btrfs_inode_ref); in btrfs_search_path_in_tree_user() 2499 len = btrfs_inode_ref_name_len(leaf, iref); in btrfs_search_path_in_tree_user() 2509 (unsigned long)(iref + 1), len); in btrfs_search_path_in_tree_user()
|
D | send.c | 890 struct btrfs_inode_ref *iref; in iterate_inode_ref() local 923 elem_size = sizeof(*iref); in iterate_inode_ref() 934 iref = (struct btrfs_inode_ref *)(ptr + cur); in iterate_inode_ref() 935 name_len = btrfs_inode_ref_name_len(eb, iref); in iterate_inode_ref() 936 name_off = (unsigned long)(iref + 1); in iterate_inode_ref() 937 index = btrfs_inode_ref_index(eb, iref); in iterate_inode_ref() 1750 struct btrfs_inode_ref *iref; in get_first_ref() local 1751 iref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref() 1753 len = btrfs_inode_ref_name_len(path->nodes[0], iref); in get_first_ref() 1755 (unsigned long)(iref + 1), in get_first_ref()
|
D | free-space-cache.c | 127 if (!block_group->iref) { in lookup_free_space_inode() 129 block_group->iref = 1; in lookup_free_space_inode() 242 if (block_group->iref) { in btrfs_remove_free_space_inode() 243 block_group->iref = 0; in btrfs_remove_free_space_inode()
|
D | relocation.c | 3214 struct btrfs_extent_inline_ref *iref; in add_tree_block() local 3217 iref = (struct btrfs_extent_inline_ref *)ptr; in add_tree_block() 3218 type = btrfs_get_extent_inline_ref_type(eb, iref, in add_tree_block() 3223 owner = btrfs_extent_inline_ref_offset(eb, iref); in add_tree_block()
|
D | tree-log.c | 4953 struct btrfs_inode_ref *iref; in btrfs_check_ref_name_override() local 4955 iref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_check_ref_name_override() 4957 this_name_len = btrfs_inode_ref_name_len(eb, iref); in btrfs_check_ref_name_override() 4958 name_ptr = (unsigned long)(iref + 1); in btrfs_check_ref_name_override() 4959 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
|
D | block-group.c | 3772 if (block_group->iref) in btrfs_put_block_group_cache() 3785 block_group->iref = 0; in btrfs_put_block_group_cache()
|
D | ctree.h | 2640 struct btrfs_extent_inline_ref *iref,
|
/Linux-v5.15/fs/btrfs/tests/ |
D | qgroup-tests.c | 19 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() 53 iref = (struct btrfs_extent_inline_ref *)(block_info + 1); in insert_normal_tree_ref() 55 btrfs_set_extent_inline_ref_type(leaf, iref, in insert_normal_tree_ref() 57 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in insert_normal_tree_ref() 59 btrfs_set_extent_inline_ref_type(leaf, iref, BTRFS_TREE_BLOCK_REF_KEY); in insert_normal_tree_ref() 60 btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid); in insert_normal_tree_ref()
|