Lines Matching refs:btrfs_root
131 struct btrfs_root *extent_root;
302 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead()
323 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root()
332 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
334 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
362 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
367 struct btrfs_root *root = NULL; in find_reloc_root()
550 struct btrfs_root *src, in clone_backref_node()
551 struct btrfs_root *dest) in clone_backref_node()
553 struct btrfs_root *reloc_root = src->reloc_root; in clone_backref_node()
635 static int __must_check __add_reloc_root(struct btrfs_root *root) in __add_reloc_root()
668 static void __del_reloc_root(struct btrfs_root *root) in __del_reloc_root()
686 ASSERT(!node || (struct btrfs_root *)node->data == root); in __del_reloc_root()
712 static int __update_reloc_root(struct btrfs_root *root) in __update_reloc_root()
730 BUG_ON((struct btrfs_root *)node->data != root); in __update_reloc_root()
742 static struct btrfs_root *create_reloc_root(struct btrfs_trans_handle *trans, in create_reloc_root()
743 struct btrfs_root *root, u64 objectid) in create_reloc_root()
746 struct btrfs_root *reloc_root; in create_reloc_root()
846 struct btrfs_root *root) in btrfs_init_reloc_root()
849 struct btrfs_root *reloc_root; in btrfs_init_reloc_root()
913 struct btrfs_root *root) in btrfs_update_reloc_root()
916 struct btrfs_root *reloc_root; in btrfs_update_reloc_root()
962 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode()
1018 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location()
1066 struct btrfs_root *root, in replace_file_extents()
1212 struct btrfs_root *dest, struct btrfs_root *src, in replace_path()
1438 int walk_up_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, in walk_up_reloc_tree()
1475 int walk_down_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, in walk_down_reloc_tree()
1520 static int invalidate_extent_cache(struct btrfs_root *root, in invalidate_extent_cache()
1614 struct btrfs_root *root) in insert_dirty_subvol()
1616 struct btrfs_root *reloc_root = root->reloc_root; in insert_dirty_subvol()
1643 struct btrfs_root *root; in clean_dirty_subvols()
1644 struct btrfs_root *next; in clean_dirty_subvols()
1652 struct btrfs_root *reloc_root = root->reloc_root; in clean_dirty_subvols()
1694 struct btrfs_root *root) in merge_reloc_root()
1700 struct btrfs_root *reloc_root; in merge_reloc_root()
1861 struct btrfs_root *root = rc->extent_root; in prepare_to_merge()
1863 struct btrfs_root *reloc_root; in prepare_to_merge()
1904 struct btrfs_root, root_list); in prepare_to_merge()
1989 struct btrfs_root *reloc_root, *tmp; in free_reloc_roots()
1999 struct btrfs_root *root; in merge_reloc_roots()
2000 struct btrfs_root *reloc_root; in merge_reloc_roots()
2020 struct btrfs_root, root_list); in merge_reloc_roots()
2116 struct btrfs_root *reloc_root) in record_reloc_root_in_trans()
2119 struct btrfs_root *root; in record_reloc_root_in_trans()
2154 struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans, in select_reloc_root()
2160 struct btrfs_root *root; in select_reloc_root()
2279 struct btrfs_root *select_one_root(struct btrfs_backref_node *node) in select_one_root()
2282 struct btrfs_root *root; in select_one_root()
2283 struct btrfs_root *fs_root = NULL; in select_one_root()
2358 struct btrfs_root *root = rc->extent_root; in reserve_metadata_space()
2411 struct btrfs_root *root; in do_relocation()
2676 struct btrfs_root *root; in relocate_tree_block()
3370 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
3815 struct btrfs_root *root, u64 objectid) in __insert_orphan_inode()
3845 struct btrfs_root *root, u64 objectid) in delete_orphan_inode()
3883 struct btrfs_root *root; in create_reloc_inode()
4022 struct btrfs_root *extent_root = btrfs_extent_root(fs_info, group_start); in btrfs_relocate_block_group()
4175 static noinline_for_stack int mark_garbage_root(struct btrfs_root *root) in mark_garbage_root()
4208 struct btrfs_root *fs_root; in btrfs_recover_relocation()
4209 struct btrfs_root *reloc_root; in btrfs_recover_relocation()
4310 struct btrfs_root, root_list); in btrfs_recover_relocation()
4389 struct btrfs_root *csum_root = btrfs_csum_root(fs_info, disk_bytenr); in btrfs_reloc_clone_csums()
4425 struct btrfs_root *root, struct extent_buffer *buf, in btrfs_reloc_cow_block()
4484 struct btrfs_root *root = pending->root; in btrfs_reloc_pre_snapshot()
4519 struct btrfs_root *root = pending->root; in btrfs_reloc_post_snapshot()
4520 struct btrfs_root *reloc_root; in btrfs_reloc_post_snapshot()
4521 struct btrfs_root *new_root; in btrfs_reloc_post_snapshot()