Lines Matching refs:bytenr
393 static int is_shared_data_backref(struct preftrees *preftrees, u64 bytenr) in is_shared_data_backref() argument
401 target.parent = bytenr; in is_shared_data_backref()
883 node->bytenr, count, sc, in add_delayed_refs()
894 ref->parent, node->bytenr, count, in add_delayed_refs()
926 &key, 0, node->bytenr, count, sc, in add_delayed_refs()
937 node->bytenr, count, sc, in add_delayed_refs()
964 struct btrfs_path *path, u64 bytenr, in add_inline_refs() argument
1026 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs()
1036 bytenr, count, sc, GFP_NOFS); in add_inline_refs()
1042 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs()
1065 &key, 0, bytenr, count, in add_inline_refs()
1087 struct btrfs_path *path, u64 bytenr, in add_keyed_refs() argument
1110 if (key.objectid != bytenr) in add_keyed_refs()
1122 bytenr, 1, NULL, GFP_NOFS); in add_keyed_refs()
1133 key.offset, bytenr, count, in add_keyed_refs()
1140 NULL, info_level + 1, bytenr, in add_keyed_refs()
1165 &key, 0, bytenr, count, in add_keyed_refs()
1203 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1223 key.objectid = bytenr;
1271 head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
1307 if (key.objectid == bytenr &&
1310 ret = add_inline_refs(fs_info, path, bytenr,
1314 ret = add_keyed_refs(fs_info, path, bytenr, info_level,
1389 ret = find_extent_in_eb(eb, bytenr,
1461 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1471 ret = find_parent_nodes(trans, fs_info, bytenr, time_seq,
1495 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1515 ret = find_parent_nodes(trans, fs_info, bytenr, time_seq,
1526 bytenr = node->val;
1535 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1543 ret = btrfs_find_all_roots_safe(trans, fs_info, bytenr,
1564 int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr, argument
1597 ret = find_parent_nodes(trans, fs_info, bytenr, elem.seq, tmp,
1610 bytenr = node->val;
2396 int btrfs_backref_iter_start(struct btrfs_backref_iter *iter, u64 bytenr) argument
2404 key.objectid = bytenr;
2407 iter->bytenr = bytenr;
2425 key.type != BTRFS_METADATA_ITEM_KEY) || key.objectid != bytenr) {
2464 if (iter->cur_key.objectid != bytenr ||
2531 if (iter->cur_key.objectid != iter->bytenr ||
2561 struct btrfs_backref_cache *cache, u64 bytenr, int level) argument
2576 node->bytenr = bytenr;
2692 root = find_reloc_root(cache->fs_info, cur->bytenr);
2772 ASSERT(btrfs_root_bytenr(&root->root_item) == cur->bytenr);
2808 if (btrfs_node_blockptr(eb, path->slots[level]) != cur->bytenr) {
2811 cur->bytenr, level - 1, root->root_key.objectid,
2823 lower->bytenr);
2924 ret = btrfs_backref_iter_start(iter, cur->bytenr);
2970 key.objectid = iter->bytenr;
2998 exist->bytenr == key.offset))) {
3051 rb_node = rb_simple_insert(&cache->rb_root, start->bytenr,
3054 btrfs_backref_panic(cache->fs_info, start->bytenr,
3119 rb_node = rb_simple_insert(&cache->rb_root, upper->bytenr,
3123 upper->bytenr, -EEXIST);