Home
last modified time | relevance | path

Searched refs:dref (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/fs/btrfs/
Dprint-tree.c83 struct btrfs_extent_data_ref *dref; in print_extent_item() local
142 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in print_extent_item()
143 print_extent_data_ref(eb, dref); in print_extent_item()
217 struct btrfs_extent_data_ref *dref; in btrfs_print_leaf() local
273 dref = btrfs_item_ptr(l, i, in btrfs_print_leaf()
275 print_extent_data_ref(l, dref); in btrfs_print_leaf()
Dref-verify.c385 struct btrfs_extent_data_ref *dref, in add_extent_data_ref() argument
391 u64 ref_root = btrfs_extent_data_ref_root(leaf, dref); in add_extent_data_ref()
392 u64 owner = btrfs_extent_data_ref_objectid(leaf, dref); in add_extent_data_ref()
393 u64 offset = btrfs_extent_data_ref_offset(leaf, dref); in add_extent_data_ref()
394 u32 num_refs = btrfs_extent_data_ref_count(leaf, dref); in add_extent_data_ref()
435 struct btrfs_extent_data_ref *dref; in process_extent_item() local
475 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in process_extent_item()
476 ret = add_extent_data_ref(fs_info, leaf, dref, in process_extent_item()
502 struct btrfs_extent_data_ref *dref; in process_leaf() local
529 dref = btrfs_item_ptr(leaf, i, in process_leaf()
[all …]
Dtree-checker.c1297 struct btrfs_extent_data_ref *dref; in check_extent_item() local
1339 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in check_extent_item()
1340 dref_offset = btrfs_extent_data_ref_offset(leaf, dref); in check_extent_item()
1347 inline_refs += btrfs_extent_data_ref_count(leaf, dref); in check_extent_item()
1418 struct btrfs_extent_data_ref *dref; in check_extent_data_ref() local
1422 if (btrfs_item_size_nr(leaf, slot) % sizeof(*dref) != 0) { in check_extent_data_ref()
1426 sizeof(*dref), key->type); in check_extent_data_ref()
1435 for (; ptr < end; ptr += sizeof(*dref)) { in check_extent_data_ref()
1441 dref = (struct btrfs_extent_data_ref *)ptr; in check_extent_data_ref()
1442 root_objectid = btrfs_extent_data_ref_root(leaf, dref); in check_extent_data_ref()
[all …]
Dbackref.c1012 struct btrfs_extent_data_ref *dref; in add_inline_refs() local
1016 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in add_inline_refs()
1017 count = btrfs_extent_data_ref_count(leaf, dref); in add_inline_refs()
1019 dref); in add_inline_refs()
1021 key.offset = btrfs_extent_data_ref_offset(leaf, dref); in add_inline_refs()
1028 root = btrfs_extent_data_ref_root(leaf, dref); in add_inline_refs()
1110 struct btrfs_extent_data_ref *dref; in add_keyed_refs() local
1114 dref = btrfs_item_ptr(leaf, slot, in add_keyed_refs()
1116 count = btrfs_extent_data_ref_count(leaf, dref); in add_keyed_refs()
1118 dref); in add_keyed_refs()
[all …]
Dextent-tree.c945 struct btrfs_extent_data_ref *dref; in lookup_inline_extent_backref() local
946 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in lookup_inline_extent_backref()
947 if (match_extent_data_ref(leaf, dref, root_objectid, in lookup_inline_extent_backref()
952 if (hash_extent_data_ref_item(leaf, dref) < in lookup_inline_extent_backref()
1049 struct btrfs_extent_data_ref *dref; in setup_inline_extent_backref() local
1050 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in setup_inline_extent_backref()
1051 btrfs_set_extent_data_ref_root(leaf, dref, root_objectid); in setup_inline_extent_backref()
1052 btrfs_set_extent_data_ref_objectid(leaf, dref, owner); in setup_inline_extent_backref()
1053 btrfs_set_extent_data_ref_offset(leaf, dref, offset); in setup_inline_extent_backref()
1054 btrfs_set_extent_data_ref_count(leaf, dref, refs_to_add); in setup_inline_extent_backref()
[all …]