/kernel/linux/linux-5.10/fs/btrfs/ |
D | root-tree.c | 209 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local 228 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots() 236 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots() 263 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots() 270 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots() 297 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root() 321 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local 338 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref() 355 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref() 395 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local [all …]
|
D | disk-io.c | 1133 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local 1185 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree() 1284 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path() argument 1289 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path() 1298 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path() 1326 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument 1335 root = read_tree_root_path(tree_root, path, key); in btrfs_read_tree_root() 1430 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root() 1506 btrfs_put_root(fs_info->tree_root); in btrfs_free_fs_info() 1577 root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_get_root_ref() [all …]
|
D | transaction.c | 1186 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local 1197 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root() 1225 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots() 1226 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots() 1357 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots() 1511 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local 1534 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot() 1661 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot() 1801 root_item = &fs_info->tree_root->root_item; in update_super_roots() 2351 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction() [all …]
|
D | export.c | 154 root = fs_info->tree_root; in btrfs_get_parent() 231 root = fs_info->tree_root; in btrfs_get_name()
|
D | tree-log.h | 67 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
|
D | free-space-tree.c | 1144 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local 1150 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree() 1238 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_clear_free_space_tree() local 1242 trans = btrfs_start_transaction(tree_root, 0); in btrfs_clear_free_space_tree()
|
D | block-rsv.c | 364 btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv() 432 fs_info->tree_root->block_rsv = &fs_info->global_block_rsv; in btrfs_init_global_block_rsv()
|
D | disk-io.h | 62 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
|
D | btrfs_inode.h | 287 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
|
D | super.c | 1139 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid() 1275 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid() 1372 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs() 1859 struct btrfs_root *root = fs_info->tree_root; in btrfs_remount() 2384 struct btrfs_root *root = fs_info->tree_root; in btrfs_freeze()
|
D | ioctl.c | 604 ret = btrfs_find_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 687 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol() 2060 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags() 2589 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user() 2778 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info() 2783 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info() 2856 root = BTRFS_I(inode)->root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref() 3471 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol() 4507 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
|
D | qgroup.c | 932 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local 989 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable() 1049 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable() 1085 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable() 1100 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable() 1240 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
|
D | relocation.c | 801 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root() 808 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root() 931 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root() 2997 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache() 3714 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root() 3722 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root() 3761 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
|
D | extent-tree.c | 5351 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot() local 5380 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot() 5382 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot() 5497 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot() 5520 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot() 5522 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot() 5541 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot() 5553 btrfs_del_orphan_item(trans, tree_root, in btrfs_drop_snapshot()
|
D | dir-item.c | 157 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
|
D | dev-replace.c | 681 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing() 904 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_cancel()
|
D | free-space-cache.c | 112 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode() 202 ret = btrfs_find_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode() 206 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode() 905 ret = __load_free_space_cache(fs_info->tree_root, inode, ctl, in load_free_space_cache() 1239 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io() 1414 ret = __btrfs_write_out_cache(fs_info->tree_root, inode, ctl, in btrfs_write_out_cache()
|
D | block-group.c | 903 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_remove_block_group() local 1007 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_remove_block_group() 1013 ret = btrfs_del_item(trans, tree_root, path); in btrfs_remove_block_group() 2368 struct btrfs_root *root = fs_info->tree_root; in cache_save_setup()
|
D | volumes.c | 3218 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_may_alloc_data_chunk() 3235 struct btrfs_root *root = fs_info->tree_root; in insert_balance_item() 3288 struct btrfs_root *root = fs_info->tree_root; in del_balance_item() 4310 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance() 4446 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread() 4581 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local 4590 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree() 6935 struct btrfs_root *root = fs_info->tree_root; in btrfs_read_sys_array()
|
D | ordered-data.c | 479 if (root != fs_info->tree_root) in btrfs_remove_ordered_extent()
|
D | ctree.h | 190 __le64 tree_root; member 589 struct btrfs_root *tree_root; member 2128 tree_root, 64);
|
D | inode.c | 2072 root != fs_info->tree_root) in btrfs_clear_delalloc_extent() 2716 BUG_ON(root == fs_info->tree_root); in btrfs_finish_ordered_io() 3115 if (ret == -ENOENT && root == fs_info->tree_root) { in btrfs_orphan_cleanup() 3900 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol() 3918 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol() 4079 fs_info->tree_root, in btrfs_delete_subvolume() 5206 if (!(root == fs_info->tree_root || in btrfs_evict_inode() 5296 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location()
|
D | scrub.c | 3985 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_scrub_dev()
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
D | qgroup-tests.c | 480 root->fs_info->tree_root = root; in btrfs_test_qgroups()
|
D | free-space-tree-tests.c | 450 root->fs_info->tree_root = root; in run_test()
|