Home
last modified time | relevance | path

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

12

/Linux-v6.6/fs/btrfs/
Droot-tree.c212 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
231 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()
266 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
273 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
315 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
338 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
354 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
370 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
410 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local
[all …]
Ddisk-io.c841 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
895 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1013 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path() argument
1019 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path()
1028 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path()
1076 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument
1085 root = read_tree_root_path(tree_root, path, key); in btrfs_read_tree_root()
1165 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root()
1254 btrfs_put_root(fs_info->tree_root); in btrfs_free_fs_info()
1326 root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_get_root_ref()
[all …]
Dtransaction.c1253 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1264 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1298 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1299 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1473 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1638 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1675 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1805 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot()
1934 root_item = &fs_info->tree_root->root_item; in update_super_roots()
2450 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
[all …]
Dexport.c167 root = fs_info->tree_root; in btrfs_get_parent()
243 root = fs_info->tree_root; in btrfs_get_name()
Dtree-log.h87 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
Dfree-space-tree.c1162 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1168 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1258 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_delete_free_space_tree() local
1267 trans = btrfs_start_transaction(tree_root, 0); in btrfs_delete_free_space_tree()
Ddisk-io.h58 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
Dfree-space-cache.c143 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode()
229 ret = btrfs_get_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode()
233 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode()
282 ret = btrfs_search_slot(trans, trans->fs_info->tree_root, &key, path, in btrfs_remove_free_space_inode()
289 ret = btrfs_del_item(trans, trans->fs_info->tree_root, path); in btrfs_remove_free_space_inode()
1015 ret = __load_free_space_cache(fs_info->tree_root, inode, &tmp_ctl, in load_free_space_cache()
1357 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io()
1535 ret = __btrfs_write_out_cache(fs_info->tree_root, inode, ctl, in btrfs_write_out_cache()
4132 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_set_free_space_cache_v1_active()
Dioctl.c611 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
703 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol()
1484 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
2004 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user()
2188 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info()
2193 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info()
2270 root = root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2937 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
3998 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
Dtree-log.c153 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() local
162 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans()
163 mutex_lock(&tree_root->log_mutex); in start_log_trans()
167 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans()
171 mutex_unlock(&tree_root->log_mutex); in start_log_trans()
2975 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
2979 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
2984 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3241 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root->state); in btrfs_free_log_root_tree()
7145 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
Drelocation.c815 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
822 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
952 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root()
3370 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
4181 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root()
4189 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root()
4227 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
4246 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_recover_relocation()
Dsuper.c970 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
1091 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1191 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
2236 struct btrfs_root *root = fs_info->tree_root; in btrfs_freeze()
Dqgroup.c955 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
1018 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1079 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1115 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable()
1130 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1281 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
Ddir-item.c160 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
Dblock-rsv.c329 u64 num_bytes = btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv()
Ddev-replace.c842 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
1060 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_cancel()
Dextent-tree.c5609 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot() local
5639 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
5641 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
5758 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
5784 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
5786 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
5805 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot()
5817 btrfs_del_orphan_item(trans, tree_root, in btrfs_drop_snapshot()
Dfs.h364 struct btrfs_root *tree_root; member
Dvolumes.c3427 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_may_alloc_data_chunk()
3444 struct btrfs_root *root = fs_info->tree_root; in insert_balance_item()
3497 struct btrfs_root *root = fs_info->tree_root; in del_balance_item()
4507 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
4642 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
4777 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
4786 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
Dinode.c2513 root != fs_info->tree_root) in btrfs_clear_delalloc_extent()
3105 BUG_ON(root == fs_info->tree_root); in btrfs_finish_one_ordered()
3527 if (!inode && root == fs_info->tree_root) { in btrfs_orphan_cleanup()
4339 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol()
4357 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol()
4520 fs_info->tree_root, in btrfs_delete_subvolume()
5400 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location()
5507 if (args->root && args->root == args->root->fs_info->tree_root && in btrfs_init_locked_inode()
Dordered-data.c599 if (root != fs_info->tree_root) { in btrfs_remove_ordered_extent()
Daccessors.h741 tree_root, 64);
/Linux-v6.6/fs/btrfs/tests/
Dqgroup-tests.c501 root->fs_info->tree_root = root; in btrfs_test_qgroups()
Dfree-space-tree-tests.c454 root->fs_info->tree_root = root; in run_test()
/Linux-v6.6/include/uapi/linux/
Dbtrfs_tree.h489 __le64 tree_root; member

12