| /linux/fs/btrfs/ |
| H A D | root-tree.c | 215 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local 233 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots() 239 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots() 264 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots() 272 ret = btrfs_del_orphan_item(trans, tree_root, root_objectid); in btrfs_find_orphan_roots() 312 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root() 333 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local 349 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref() 364 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref() 401 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local [all …]
|
| H A D | disk-io.c | 822 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local 872 ret = btrfs_insert_root(trans, tree_root, &root->root_key, &root->root_item); in btrfs_create_tree() 989 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path() argument 995 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path() 1004 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path() 1055 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument 1064 root = read_tree_root_path(tree_root, path, key); in btrfs_read_tree_root() 1142 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root() 1243 btrfs_put_root(fs_info->tree_root); in btrfs_free_fs_info() 1325 root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_get_root_ref() [all …]
|
| H A D | uuid-tree.c | 394 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread() 529 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local 538 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
|
| H A D | transaction.c | 1321 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local 1332 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root() 1366 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots() 1367 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots() 1545 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots() 1668 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local 1705 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot() 1831 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot() 1978 root_item = &fs_info->tree_root->root_item; in update_super_roots() 2522 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction() [all …]
|
| H A D | export.c | 173 root = fs_info->tree_root; in btrfs_get_parent() 260 root = fs_info->tree_root; in btrfs_get_name()
|
| H A D | disk-io.h | 65 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
|
| H A D | qgroup.c | 495 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_qgroup_config() local 515 qgroup->qgroupid > tree_root->free_objectid) in btrfs_read_qgroup_config() 521 tree_root->free_objectid = qgroup->qgroupid + 1; in btrfs_read_qgroup_config() 1001 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local 1059 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable() 1127 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable() 1168 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable() 1186 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable() 1329 return btrfs_commit_current_transaction(fs_info->tree_root); in flush_reservations() 1390 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable() [all …]
|
| H A D | free-space-cache.c | 147 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode() 231 ret = btrfs_get_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode() 235 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode() 284 ret = btrfs_search_slot(trans, trans->fs_info->tree_root, &key, path, in btrfs_remove_free_space_inode() 291 return btrfs_del_item(trans, trans->fs_info->tree_root, path); in btrfs_remove_free_space_inode() 1016 ret = __load_free_space_cache(fs_info->tree_root, inode, &tmp_ctl, in load_free_space_cache() 1350 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io() 4189 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_set_free_space_cache_v1_active()
|
| H A D | block-rsv.c | 343 num_bytes = btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv()
|
| H A D | super.c | 796 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid() 913 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid() 1007 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs() 2322 return btrfs_commit_current_transaction(fs_info->tree_root); in btrfs_freeze()
|
| H A D | tree-log.c | 281 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() local 290 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans() 291 mutex_lock(&tree_root->log_mutex); in start_log_trans() 295 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans() 299 mutex_unlock(&tree_root->log_mutex); in start_log_trans() 3399 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log() 3404 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log() 3409 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log() 3672 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root->state); in btrfs_free_log_root_tree() 7757 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
|
| H A D | ioctl.c | 566 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 656 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol() 1368 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags() 1838 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user() 2015 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in _btrfs_ioctl_get_subvol_info() 2020 ret = btrfs_next_leaf(fs_info->tree_root, path); in _btrfs_ioctl_get_subvol_info() 2156 root = root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref() 2832 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol() 3972 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
|
| H A D | relocation.c | 722 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root() 729 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root() 858 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root() 3335 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache() 4841 trans = btrfs_start_transaction_fallback_global_rsv(fs_info->tree_root, num_items); in btrfs_last_identity_remap_gone() 5579 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root() 5587 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root() 5644 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation() 5662 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_recover_relocation()
|
| H A D | extent-tree.c | 6266 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot() local 6295 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot() 6297 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot() 6416 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot() 6441 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot() 6443 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot() 6461 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot() 6474 btrfs_del_orphan_item(trans, tree_root, btrfs_root_id(root)); in btrfs_drop_snapshot()
|
| H A D | fs.h | 506 struct btrfs_root *tree_root; member
|
| H A D | inode.c | 2678 root != fs_info->tree_root) in btrfs_clear_delalloc_extent() 3311 BUG_ON(root == fs_info->tree_root); in btrfs_finish_one_ordered() 3808 if (!inode && root == fs_info->tree_root) { in btrfs_orphan_cleanup() 4706 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol() 4724 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol() 4859 fs_info->tree_root, in btrfs_delete_subvolume() 5844 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location() 5921 if (args->root && args->root == args->root->fs_info->tree_root && in btrfs_init_locked_inode()
|
| H A D | space-info.c | 855 struct btrfs_root *root = fs_info->tree_root; in flush_space()
|
| H A D | volumes.c | 3836 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_may_alloc_data_chunk() 3891 struct btrfs_root *root = fs_info->tree_root; in insert_balance_item() 3943 struct btrfs_root *root = fs_info->tree_root; in del_balance_item() 5141 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
|
| H A D | sysfs.c | 881 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_force_chunk_alloc_store()
|
| H A D | zoned.c | 2859 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_zoned_reserve_data_reloc_bg()
|
| H A D | scrub.c | 3191 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_scrub_dev()
|
| H A D | backref.c | 2429 trans = btrfs_attach_transaction(ctx->fs_info->tree_root); in iterate_extent_inodes()
|
| H A D | send.c | 2460 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
|
| /linux/fs/btrfs/tests/ |
| H A D | qgroup-tests.c | 492 root->fs_info->tree_root = root; in btrfs_test_qgroups()
|
| H A D | raid-stripe-tree-tests.c | 1110 root->fs_info->tree_root = root; in run_test()
|