Lines Matching refs:free_space_root
1164 struct btrfs_root *free_space_root; in btrfs_create_free_space_tree() local
1175 free_space_root = btrfs_create_tree(trans, in btrfs_create_free_space_tree()
1177 if (IS_ERR(free_space_root)) { in btrfs_create_free_space_tree()
1178 ret = PTR_ERR(free_space_root); in btrfs_create_free_space_tree()
1183 ret = btrfs_global_root_insert(free_space_root); in btrfs_create_free_space_tree()
1185 btrfs_put_root(free_space_root); in btrfs_create_free_space_tree()
1270 struct btrfs_root *free_space_root = btrfs_global_root(fs_info, &key); in btrfs_delete_free_space_tree() local
1280 ret = clear_free_space_tree(trans, free_space_root); in btrfs_delete_free_space_tree()
1287 ret = btrfs_del_root(trans, &free_space_root->root_key); in btrfs_delete_free_space_tree()
1294 btrfs_global_root_delete(free_space_root); in btrfs_delete_free_space_tree()
1297 list_del(&free_space_root->dirty_list); in btrfs_delete_free_space_tree()
1300 btrfs_tree_lock(free_space_root->node); in btrfs_delete_free_space_tree()
1301 btrfs_clear_buffer_dirty(trans, free_space_root->node); in btrfs_delete_free_space_tree()
1302 btrfs_tree_unlock(free_space_root->node); in btrfs_delete_free_space_tree()
1303 ret = btrfs_free_tree_block(trans, btrfs_root_id(free_space_root), in btrfs_delete_free_space_tree()
1304 free_space_root->node, 0, 1); in btrfs_delete_free_space_tree()
1305 btrfs_put_root(free_space_root); in btrfs_delete_free_space_tree()
1323 struct btrfs_root *free_space_root = btrfs_global_root(fs_info, &key); in btrfs_rebuild_free_space_tree() local
1327 trans = btrfs_start_transaction(free_space_root, 1); in btrfs_rebuild_free_space_tree()
1334 ret = clear_free_space_tree(trans, free_space_root); in btrfs_rebuild_free_space_tree()