Lines Matching refs:btrfs_root

54 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
57 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
715 struct btrfs_root *root; in btree_csum_one_bio()
967 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1045 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
1048 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root()
1056 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
1058 struct btrfs_root *root; in btrfs_alloc_dummy_root()
1076 const struct btrfs_root *a = rb_entry(a_node, struct btrfs_root, rb_node); in global_root_cmp()
1077 const struct btrfs_root *b = rb_entry(b_node, struct btrfs_root, rb_node); in global_root_cmp()
1085 const struct btrfs_root *root = rb_entry(node, struct btrfs_root, rb_node); in global_root_key_cmp()
1090 int btrfs_global_root_insert(struct btrfs_root *root) in btrfs_global_root_insert()
1103 void btrfs_global_root_delete(struct btrfs_root *root) in btrfs_global_root_delete()
1112 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info, in btrfs_global_root()
1116 struct btrfs_root *root = NULL; in btrfs_global_root()
1121 root = container_of(node, struct btrfs_root, rb_node); in btrfs_global_root()
1148 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_csum_root()
1159 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_extent_root()
1170 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree()
1175 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
1176 struct btrfs_root *root; in btrfs_create_tree()
1244 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree()
1247 struct btrfs_root *root; in alloc_log_tree()
1261 struct btrfs_root *root) in btrfs_alloc_log_tree_node()
1291 struct btrfs_root *log_root; in btrfs_init_log_root_tree()
1312 struct btrfs_root *root) in btrfs_add_log_tree()
1315 struct btrfs_root *log_root; in btrfs_add_log_tree()
1350 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path()
1354 struct btrfs_root *root; in read_tree_root_path()
1410 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root()
1413 struct btrfs_root *root; in btrfs_read_tree_root()
1430 static int btrfs_init_fs_root(struct btrfs_root *root, dev_t anon_dev) in btrfs_init_fs_root()
1483 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1486 struct btrfs_root *root; in btrfs_lookup_fs_root()
1497 static struct btrfs_root *btrfs_get_global_root(struct btrfs_fs_info *fs_info, in btrfs_get_global_root()
1526 struct btrfs_root *root = btrfs_global_root(fs_info, &key); in btrfs_get_global_root()
1534 struct btrfs_root *root) in btrfs_insert_fs_root()
1559 struct btrfs_root *root; in btrfs_check_leaked_roots()
1565 struct btrfs_root, leak_list); in btrfs_check_leaked_roots()
1578 struct btrfs_root *root; in free_global_roots()
1582 root = rb_entry(node, struct btrfs_root, rb_node); in free_global_roots()
1635 static struct btrfs_root *btrfs_get_root_ref(struct btrfs_fs_info *fs_info, in btrfs_get_root_ref()
1639 struct btrfs_root *root; in btrfs_get_root_ref()
1720 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1734 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_new_fs_root()
1754 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root_commit_root()
1758 struct btrfs_root *root; in btrfs_get_fs_root_commit_root()
1862 struct btrfs_root *root = arg; in transaction_kthread()
1982 struct btrfs_root *extent_root = btrfs_extent_root(info, 0); in backup_super_roots()
1983 struct btrfs_root *csum_root = btrfs_csum_root(info, 0); in backup_super_roots()
2110 static void free_root_extent_buffers(struct btrfs_root *root) in free_root_extent_buffers()
2122 struct btrfs_root *root, *tmp; in free_global_root_pointers()
2146 void btrfs_put_root(struct btrfs_root *root) in btrfs_put_root()
2170 struct btrfs_root *gang[8]; in btrfs_free_fs_roots()
2175 struct btrfs_root, root_list); in btrfs_free_fs_roots()
2353 struct btrfs_root *log_tree_root; in btrfs_replay_log()
2403 static int load_global_roots_objectid(struct btrfs_root *tree_root, in load_global_roots_objectid()
2408 struct btrfs_root *root; in load_global_roots_objectid()
2485 static int load_global_roots(struct btrfs_root *tree_root) in load_global_roots()
2514 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_roots()
2515 struct btrfs_root *root; in btrfs_read_roots()
2847 static int load_super_root(struct btrfs_root *root, u64 bytenr, u64 gen, int level) in load_super_root()
2891 struct btrfs_root *tree_root = fs_info->tree_root; in init_tree_roots()
3413 struct btrfs_root *tree_root; in open_ctree()
3414 struct btrfs_root *chunk_root; in open_ctree()
4409 struct btrfs_root *root) in btrfs_drop_and_free_fs_root()
4435 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots()
4484 struct btrfs_root *root = fs_info->tree_root; in btrfs_commit_super()
4826 struct btrfs_root *gang[8]; in btrfs_drop_all_logs()
4854 static void btrfs_destroy_ordered_extents(struct btrfs_root *root) in btrfs_destroy_ordered_extents()
4871 struct btrfs_root *root; in btrfs_destroy_all_ordered_extents()
4879 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_ordered_extents()
4981 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) in btrfs_destroy_delalloc_inodes()
5014 struct btrfs_root *root; in btrfs_destroy_all_delalloc_inodes()
5022 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_delalloc_inodes()
5252 int btrfs_init_root_free_objectid(struct btrfs_root *root) in btrfs_init_root_free_objectid()
5287 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_get_free_objectid()