Lines Matching refs:iref
357 struct btrfs_extent_inline_ref *iref, in btrfs_get_extent_inline_ref_type() argument
360 int type = btrfs_extent_inline_ref_type(eb, iref); in btrfs_get_extent_inline_ref_type()
361 u64 offset = btrfs_extent_inline_ref_offset(eb, iref); in btrfs_get_extent_inline_ref_type()
402 eb->start, (unsigned long)iref, type); in btrfs_get_extent_inline_ref_type()
645 struct btrfs_extent_inline_ref *iref) in extent_data_ref_count() argument
658 if (iref) { in extent_data_ref_count()
663 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); in extent_data_ref_count()
666 ref1 = (struct btrfs_extent_data_ref *)(&iref->offset); in extent_data_ref_count()
669 ref2 = (struct btrfs_shared_data_ref *)(iref + 1); in extent_data_ref_count()
797 struct btrfs_extent_inline_ref *iref; in lookup_inline_extent_backref() local
907 iref = (struct btrfs_extent_inline_ref *)ptr; in lookup_inline_extent_backref()
908 type = btrfs_get_extent_inline_ref_type(leaf, iref, needed); in lookup_inline_extent_backref()
923 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in lookup_inline_extent_backref()
934 ref_offset = btrfs_extent_inline_ref_offset(leaf, iref); in lookup_inline_extent_backref()
988 struct btrfs_extent_inline_ref *iref, in setup_inline_extent_backref() argument
1004 item_offset = (unsigned long)iref - (unsigned long)ei; in setup_inline_extent_backref()
1024 iref = (struct btrfs_extent_inline_ref *)ptr; in setup_inline_extent_backref()
1025 btrfs_set_extent_inline_ref_type(leaf, iref, type); in setup_inline_extent_backref()
1028 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in setup_inline_extent_backref()
1035 sref = (struct btrfs_shared_data_ref *)(iref + 1); in setup_inline_extent_backref()
1037 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in setup_inline_extent_backref()
1039 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in setup_inline_extent_backref()
1041 btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid); in setup_inline_extent_backref()
1078 struct btrfs_extent_inline_ref *iref, in update_inline_extent_backref() argument
1105 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_ANY); in update_inline_extent_backref()
1109 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in update_inline_extent_backref()
1112 sref = (struct btrfs_shared_data_ref *)(iref + 1); in update_inline_extent_backref()
1130 ptr = (unsigned long)iref; in update_inline_extent_backref()
1149 struct btrfs_extent_inline_ref *iref; in insert_inline_extent_backref() local
1152 ret = lookup_inline_extent_backref(trans, path, &iref, bytenr, in insert_inline_extent_backref()
1172 update_inline_extent_backref(path, iref, refs_to_add, extent_op); in insert_inline_extent_backref()
1174 setup_inline_extent_backref(trans->fs_info, path, iref, parent, in insert_inline_extent_backref()
1185 struct btrfs_extent_inline_ref *iref, in remove_extent_backref() argument
1191 if (iref) in remove_extent_backref()
1192 update_inline_extent_backref(path, iref, -refs_to_drop, NULL); in remove_extent_backref()
2291 struct btrfs_extent_inline_ref *iref; in check_committed_ref() local
2336 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in check_committed_ref()
2339 type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); in check_committed_ref()
2343 ref = (struct btrfs_extent_data_ref *)(&iref->offset); in check_committed_ref()
2929 struct btrfs_extent_inline_ref *iref; in __btrfs_free_extent() local
2962 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
2997 if (iref) { in __btrfs_free_extent()
3117 if (iref) { in __btrfs_free_extent()
3130 iref, refs_to_drop, is_data); in __btrfs_free_extent()
3140 extent_data_ref_count(path, iref)) { in __btrfs_free_extent()
3143 extent_data_ref_count(path, iref), in __btrfs_free_extent()
3148 if (iref) { in __btrfs_free_extent()
4665 struct btrfs_extent_inline_ref *iref; in alloc_reserved_file_extent() local
4697 iref = (struct btrfs_extent_inline_ref *)(extent_item + 1); in alloc_reserved_file_extent()
4698 btrfs_set_extent_inline_ref_type(leaf, iref, type); in alloc_reserved_file_extent()
4701 ref = (struct btrfs_shared_data_ref *)(iref + 1); in alloc_reserved_file_extent()
4702 btrfs_set_extent_inline_ref_offset(leaf, iref, parent); in alloc_reserved_file_extent()
4706 ref = (struct btrfs_extent_data_ref *)(&iref->offset); in alloc_reserved_file_extent()
4729 struct btrfs_extent_inline_ref *iref; in alloc_reserved_tree_block() local
4733 u32 size = sizeof(*extent_item) + sizeof(*iref); in alloc_reserved_tree_block()
4770 iref = (struct btrfs_extent_inline_ref *)(extent_item + 1); in alloc_reserved_tree_block()
4775 iref = (struct btrfs_extent_inline_ref *)(block_info + 1); in alloc_reserved_tree_block()
4779 btrfs_set_extent_inline_ref_type(leaf, iref, in alloc_reserved_tree_block()
4781 btrfs_set_extent_inline_ref_offset(leaf, iref, ref->parent); in alloc_reserved_tree_block()
4783 btrfs_set_extent_inline_ref_type(leaf, iref, in alloc_reserved_tree_block()
4785 btrfs_set_extent_inline_ref_offset(leaf, iref, ref->root); in alloc_reserved_tree_block()
5221 struct btrfs_extent_inline_ref *iref; in check_ref_exists() local
5228 ret = lookup_extent_backref(trans, path, &iref, bytenr, in check_ref_exists()