Home
last modified time | relevance | path

Searched refs:tree_root (Results 1 – 18 of 18) sorted by relevance

/linux/fs/btrfs/
H A Ddisk-io.c838 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
892 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1009 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path() argument
1015 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path()
1024 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path()
1072 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument
1081 root = read_tree_root_path(tree_root, path, key); in btrfs_read_tree_root()
1159 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root()
1260 btrfs_put_root(fs_info->tree_root); in btrfs_free_fs_info()
1341 root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_get_root_ref()
[all …]
H A Dtransaction.c1304 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1315 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1349 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1350 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1532 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1656 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1693 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1829 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot()
1960 root_item = &fs_info->tree_root->root_item; in update_super_roots()
2493 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
[all …]
H A Dexport.c173 root = fs_info->tree_root; in btrfs_get_parent()
260 root = fs_info->tree_root; in btrfs_get_name()
H A Dfree-space-tree.c1158 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1164 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1267 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_delete_free_space_tree() local
1276 trans = btrfs_start_transaction(tree_root, 0); in btrfs_delete_free_space_tree()
H A Dqgroup.c460 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_qgroup_config() local
480 qgroup->qgroupid > tree_root->free_objectid) in btrfs_read_qgroup_config()
486 tree_root->free_objectid = qgroup->qgroupid + 1; in btrfs_read_qgroup_config()
971 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
1029 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1091 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1132 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable()
1147 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1274 return btrfs_commit_current_transaction(fs_info->tree_root); in flush_reservations()
1335 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
[all …]
H A Drelocation.c671 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
676 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
803 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root()
3210 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
4023 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root()
4031 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root()
4069 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
4087 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_recover_relocation()
H A Dioctl.c528 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
618 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol()
1415 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
1909 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user()
2088 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info()
2093 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info()
2170 root = root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2863 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
3971 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
H A Dsuper.c803 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
920 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1014 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
2301 return btrfs_commit_current_transaction(fs_info->tree_root); in btrfs_freeze()
H A Dtree-log.c292 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() local
301 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans()
302 mutex_lock(&tree_root->log_mutex); in start_log_trans()
306 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans()
310 mutex_unlock(&tree_root->log_mutex); in start_log_trans()
3425 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3429 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3434 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3693 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root->state); in btrfs_free_log_root_tree()
7643 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
H A Dinode.c2636 root != fs_info->tree_root) in btrfs_clear_delalloc_extent()
3229 BUG_ON(root == fs_info->tree_root); in btrfs_finish_one_ordered()
3728 if (!inode && root == fs_info->tree_root) { in btrfs_orphan_cleanup()
4616 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol()
4634 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol()
4769 fs_info->tree_root, in btrfs_delete_subvolume()
5762 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location()
5839 if (args->root && args->root == args->root->fs_info->tree_root && in btrfs_init_locked_inode()
H A Dvolumes.c3585 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_may_alloc_data_chunk()
3640 struct btrfs_root *root = fs_info->tree_root; in insert_balance_item()
3690 struct btrfs_root *root = fs_info->tree_root; in del_balance_item()
4692 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
H A Dzoned.c2624 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_zoned_reserve_data_reloc_bg()
H A Dscrub.c3252 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_scrub_dev()
H A Dsend.c2477 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
/linux/fs/btrfs/tests/
H A Dqgroup-tests.c492 root->fs_info->tree_root = root; in btrfs_test_qgroups()
H A Dfree-space-tree-tests.c451 root->fs_info->tree_root = root; in run_test()
H A Draid-stripe-tree-tests.c1110 root->fs_info->tree_root = root; in run_test()
/linux/include/uapi/linux/
H A Dbtrfs_tree.h510 __le64 tree_root; member