Lines Matching refs:btrfs_root
55 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
58 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
879 struct btrfs_root *root; in btree_csum_one_bio()
1139 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1216 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
1219 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root()
1227 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
1229 struct btrfs_root *root; in btrfs_alloc_dummy_root()
1245 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree()
1250 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
1251 struct btrfs_root *root; in btrfs_create_tree()
1319 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree()
1322 struct btrfs_root *root; in alloc_log_tree()
1336 struct btrfs_root *root) in btrfs_alloc_log_tree_node()
1366 struct btrfs_root *log_root; in btrfs_init_log_root_tree()
1387 struct btrfs_root *root) in btrfs_add_log_tree()
1390 struct btrfs_root *log_root; in btrfs_add_log_tree()
1425 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path()
1429 struct btrfs_root *root; in read_tree_root_path()
1467 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root()
1470 struct btrfs_root *root; in btrfs_read_tree_root()
1487 static int btrfs_init_fs_root(struct btrfs_root *root, dev_t anon_dev) in btrfs_init_fs_root()
1540 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1543 struct btrfs_root *root; in btrfs_lookup_fs_root()
1554 static struct btrfs_root *btrfs_get_global_root(struct btrfs_fs_info *fs_info, in btrfs_get_global_root()
1580 struct btrfs_root *root) in btrfs_insert_fs_root()
1605 struct btrfs_root *root; in btrfs_check_leaked_roots()
1611 struct btrfs_root, leak_list); in btrfs_check_leaked_roots()
1669 static struct btrfs_root *btrfs_get_root_ref(struct btrfs_fs_info *fs_info, in btrfs_get_root_ref()
1673 struct btrfs_root *root; in btrfs_get_root_ref()
1745 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1759 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_new_fs_root()
1779 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root_commit_root()
1783 struct btrfs_root *root; in btrfs_get_fs_root_commit_root()
1832 struct btrfs_root *root = arg; in cleaner_kthread()
1907 struct btrfs_root *root = arg; in transaction_kthread()
2144 static void free_root_extent_buffers(struct btrfs_root *root) in free_root_extent_buffers()
2171 void btrfs_put_root(struct btrfs_root *root) in btrfs_put_root()
2195 struct btrfs_root *gang[8]; in btrfs_free_fs_roots()
2200 struct btrfs_root, root_list); in btrfs_free_fs_roots()
2382 struct btrfs_root *log_tree_root; in btrfs_replay_log()
2432 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_roots()
2433 struct btrfs_root *root; in btrfs_read_roots()
2777 struct btrfs_root *tree_root = fs_info->tree_root; in init_tree_roots()
3199 struct btrfs_root *tree_root; in open_ctree()
3200 struct btrfs_root *chunk_root; in open_ctree()
4213 struct btrfs_root *root) in btrfs_drop_and_free_fs_root()
4239 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots()
4288 struct btrfs_root *root = fs_info->tree_root; in btrfs_commit_super()
4551 struct btrfs_root *gang[8]; in btrfs_drop_all_logs()
4579 static void btrfs_destroy_ordered_extents(struct btrfs_root *root) in btrfs_destroy_ordered_extents()
4596 struct btrfs_root *root; in btrfs_destroy_all_ordered_extents()
4604 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_ordered_extents()
4706 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) in btrfs_destroy_delalloc_inodes()
4739 struct btrfs_root *root; in btrfs_destroy_all_delalloc_inodes()
4747 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_delalloc_inodes()
4977 int btrfs_init_root_free_objectid(struct btrfs_root *root) in btrfs_init_root_free_objectid()
5012 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_get_free_objectid()