Lines Matching refs:bytenr
94 u64 bytenr; member
110 u64 bytenr; member
174 in_range(node->bytenr, rc->block_group->start, in mark_block_processed()
177 set_extent_bit(&rc->processed_blocks, node->bytenr, in mark_block_processed()
178 node->bytenr + blocksize - 1, EXTENT_DIRTY, NULL); in mark_block_processed()
297 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() argument
306 rb_node = rb_simple_search(&rc->reloc_root_tree.rb_root, bytenr); in find_reloc_root()
406 int level, u64 bytenr) in build_backref_tree() argument
427 node = btrfs_backref_alloc_node(cache, bytenr, level); in build_backref_tree()
541 rb_node = rb_simple_insert(&cache->rb_root, new_node->bytenr, in clone_backref_node()
544 btrfs_backref_panic(trans->fs_info, new_node->bytenr, -EEXIST); in clone_backref_node()
578 node->bytenr = root->commit_root->start; in __add_reloc_root()
583 node->bytenr, &node->rb_node); in __add_reloc_root()
588 node->bytenr); in __add_reloc_root()
665 node->bytenr = root->node->start; in __update_reloc_root()
667 node->bytenr, &node->rb_node); in __update_reloc_root()
670 btrfs_backref_panic(fs_info, node->bytenr, -EEXIST); in __update_reloc_root()
948 u64 bytenr, u64 num_bytes) in get_new_location() argument
960 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
962 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1006 u64 bytenr; in replace_file_extents() local
1037 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in replace_file_extents()
1039 if (bytenr == 0) in replace_file_extents()
1041 if (!in_range(bytenr, rc->block_group->start, in replace_file_extents()
1080 bytenr, num_bytes); in replace_file_extents()
1104 btrfs_init_generic_ref(&ref, BTRFS_DROP_DELAYED_REF, bytenr, in replace_file_extents()
2118 node->bytenr); in select_reloc_root()
2125 node->bytenr); in select_reloc_root()
2161 node->bytenr, next->bytenr); in select_reloc_root()
2346 u64 bytenr; in do_relocation() local
2376 bytenr = btrfs_node_blockptr(upper->eb, slot); in do_relocation()
2377 if (node->eb->start == bytenr) in do_relocation()
2412 bytenr = btrfs_node_blockptr(upper->eb, slot); in do_relocation()
2414 if (bytenr != node->bytenr) { in do_relocation()
2417 bytenr, node->bytenr, slot, in do_relocation()
2423 if (node->eb->start == bytenr) in do_relocation()
2563 static int tree_block_processed(u64 bytenr, struct reloc_control *rc) in tree_block_processed() argument
2567 if (test_range_bit(&rc->processed_blocks, bytenr, in tree_block_processed()
2568 bytenr + blocksize - 1, EXTENT_DIRTY, 1, NULL)) in tree_block_processed()
2583 eb = read_tree_block(fs_info, block->bytenr, &check); in get_tree_block_key()
2656 node->bytenr); in relocate_tree_block()
2723 btrfs_readahead_tree_block(fs_info, block->bytenr, in relocate_tree_blocks()
2740 block->level, block->bytenr); in relocate_tree_blocks()
3209 block->bytenr = extent_key->objectid; in add_tree_block()
3216 rb_node = rb_simple_insert(blocks, block->bytenr, &block->rb_node); in add_tree_block()
3218 btrfs_backref_panic(rc->extent_root->fs_info, block->bytenr, in add_tree_block()
3228 u64 bytenr, u32 blocksize, in __add_tree_block() argument
3237 if (tree_block_processed(bytenr, rc)) in __add_tree_block()
3240 if (rb_simple_search(blocks, bytenr)) in __add_tree_block()
3247 key.objectid = bytenr; in __add_tree_block()
3267 if (key.objectid == bytenr && in __add_tree_block()
3285 bytenr); in __add_tree_block()
3392 ctx.bytenr = extent_key->objectid; in add_data_references()
4381 BUG_ON(node->bytenr != buf->start && in btrfs_reloc_cow_block()