Lines Matching refs:chunk_root
1551 ret = btrfs_search_slot(NULL, fs_info->chunk_root, &key, path, 0, 0); in find_next_devid()
1557 ret = btrfs_previous_item(fs_info->chunk_root, path, in find_next_devid()
1588 root = root->fs_info->chunk_root; in btrfs_add_device()
1657 root = root->fs_info->chunk_root; in btrfs_rm_dev_item()
1817 ret = btrfs_rm_dev_item(root->fs_info->chunk_root, device); in btrfs_rm_device()
2186 root = root->fs_info->chunk_root; in btrfs_finish_sprout()
2568 root = device->dev_root->fs_info->chunk_root; in btrfs_update_device()
2652 root = root->fs_info->chunk_root; in btrfs_free_chunk()
2740 root = root->fs_info->chunk_root; in btrfs_remove_chunk()
2760 lock_chunks(root->fs_info->chunk_root); in btrfs_remove_chunk()
2762 unlock_chunks(root->fs_info->chunk_root); in btrfs_remove_chunk()
2827 root = root->fs_info->chunk_root; in btrfs_relocate_chunk()
2874 struct btrfs_root *chunk_root = root->fs_info->chunk_root; in btrfs_relocate_sys_chunks() local
2896 ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); in btrfs_relocate_sys_chunks()
2903 ret = btrfs_previous_item(chunk_root, path, key.objectid, in btrfs_relocate_sys_chunks()
2921 ret = btrfs_relocate_chunk(chunk_root, in btrfs_relocate_sys_chunks()
3379 struct btrfs_root *chunk_root = fs_info->chunk_root; in __btrfs_balance() local
3464 ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); in __btrfs_balance()
3477 ret = btrfs_previous_item(chunk_root, path, 0, in __btrfs_balance()
3503 ret = should_balance_chunk(chunk_root, leaf, chunk, in __btrfs_balance()
3543 trans = btrfs_start_transaction(chunk_root, 0); in __btrfs_balance()
3550 ret = btrfs_force_chunk_alloc(trans, chunk_root, in __btrfs_balance()
3552 btrfs_end_transaction(trans, chunk_root); in __btrfs_balance()
3560 ret = btrfs_relocate_chunk(chunk_root, in __btrfs_balance()
4535 devs_max = BTRFS_MAX_DEVS(info->chunk_root); in __btrfs_alloc_chunk()
4544 devs_max = BTRFS_MAX_DEVS(info->chunk_root); in __btrfs_alloc_chunk()
4714 trace_btrfs_chunk_alloc(info->chunk_root, map, start, num_bytes); in __btrfs_alloc_chunk()
4786 struct btrfs_root *chunk_root = extent_root->fs_info->chunk_root; in btrfs_finish_chunk_alloc() local
4836 chunk_root->root_key.objectid, in btrfs_finish_chunk_alloc()
4869 ret = btrfs_insert_item(trans, chunk_root, &key, chunk, item_size); in btrfs_finish_chunk_alloc()
4875 ret = btrfs_add_system_chunk(chunk_root, &key, chunk, in btrfs_finish_chunk_alloc()
4921 alloc_profile = btrfs_get_alloc_profile(fs_info->chunk_root, 0); in init_first_rw_device()
6558 root = root->fs_info->chunk_root; in btrfs_read_chunk_tree()