Home
last modified time | relevance | path

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

12

/linux-6.15/fs/btrfs/
H A Droot-tree.c217 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
236 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
244 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
271 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
278 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
320 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
346 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
362 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
378 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
418 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local
[all …]
H A Ddisk-io.c852 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
1912 fs_info->tree_root); in btrfs_init_btree_inode()
2225 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_roots() local
2230 ASSERT(fs_info->tree_root); in btrfs_read_roots()
2701 struct btrfs_root *tree_root = fs_info->tree_root; in init_tree_roots() local
2708 if (!IS_ERR(tree_root->node)) in init_tree_roots()
2710 tree_root->node = NULL; in init_tree_roots()
3288 struct btrfs_root *tree_root; in open_ctree() local
3300 fs_info->tree_root = tree_root; in open_ctree()
3304 if (!tree_root || !chunk_root) { in open_ctree()
[all …]
H A Duuid-tree.c397 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
532 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
541 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
H A Dtransaction.c1295 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1306 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1340 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1341 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1516 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1640 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1677 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1945 root_item = &fs_info->tree_root->root_item; in update_super_roots()
2474 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
2475 fs_info->tree_root->node); in btrfs_commit_transaction()
[all …]
H A Dtree-log.h78 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
H A Dexport.c167 root = fs_info->tree_root; in btrfs_get_parent()
254 root = fs_info->tree_root; in btrfs_get_name()
H A Dfree-space-tree.c1156 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1162 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1254 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_delete_free_space_tree() local
1263 trans = btrfs_start_transaction(tree_root, 0); in btrfs_delete_free_space_tree()
H A Ddisk-io.h65 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
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()
992 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
1057 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1122 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()
1183 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1314 return btrfs_commit_current_transaction(fs_info->tree_root); in flush_reservations()
1372 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
[all …]
H A Dtree-log.c170 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() local
179 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans()
180 mutex_lock(&tree_root->log_mutex); in start_log_trans()
184 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans()
188 mutex_unlock(&tree_root->log_mutex); in start_log_trans()
3018 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3022 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3027 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3280 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root->state); in btrfs_free_log_root_tree()
7201 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
H A Drelocation.c647 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
654 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
783 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root()
3247 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
4066 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root()
4074 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root()
4112 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
4130 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_recover_relocation()
H A Dfree-space-cache.c146 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode()
230 ret = btrfs_get_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode()
234 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode()
283 ret = btrfs_search_slot(trans, trans->fs_info->tree_root, &key, path, in btrfs_remove_free_space_inode()
290 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()
1357 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io()
4140 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_set_free_space_cache_v1_active()
H A Dioctl.c528 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
620 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol()
1429 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
1948 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user()
2132 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info()
2137 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info()
2214 root = root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2914 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
4050 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
H A Dblock-rsv.c328 u64 num_bytes = btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv()
H A Ddir-item.c157 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
H A Dsuper.c791 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
912 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()
2280 return btrfs_commit_current_transaction(fs_info->tree_root); in btrfs_freeze()
H A Dextent-tree.c6014 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot() local
6044 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
6046 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
6165 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
6190 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
6192 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
6210 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot()
6223 btrfs_del_orphan_item(trans, tree_root, btrfs_root_id(root)); in btrfs_drop_snapshot()
H A Ddev-replace.c865 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
1083 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_cancel()
H A Dfs.h428 struct btrfs_root *tree_root; member
H A Dinode.c2606 root != fs_info->tree_root) in btrfs_clear_delalloc_extent()
3198 BUG_ON(root == fs_info->tree_root); in btrfs_finish_one_ordered()
3641 if (!inode && root == fs_info->tree_root) { in btrfs_orphan_cleanup()
4511 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol()
4529 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol()
4666 fs_info->tree_root, in btrfs_delete_subvolume()
5550 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location()
5618 if (args->root && args->root == args->root->fs_info->tree_root && in btrfs_init_locked_inode()
H A Dordered-data.c655 if (root != fs_info->tree_root) { in btrfs_remove_ordered_extent()
/linux-6.15/fs/btrfs/tests/
H A Dqgroup-tests.c501 root->fs_info->tree_root = root; in btrfs_test_qgroups()
H A Dfree-space-tree-tests.c454 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-6.15/include/uapi/linux/
H A Dbtrfs_tree.h510 __le64 tree_root; member

12