Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
A Droot-tree.c207 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
226 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
234 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
261 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
268 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
295 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
319 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
336 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
352 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
392 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() local
[all …]
A Ddisk-io.c1250 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
2440 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_roots() local
2445 BUG_ON(!fs_info->tree_root); in btrfs_read_roots()
2784 struct btrfs_root *tree_root = fs_info->tree_root; in init_tree_roots() local
2796 tree_root->node = NULL; in init_tree_roots()
2825 tree_root->node = NULL; in init_tree_roots()
2836 btrfs_set_root_node(&tree_root->root_item, tree_root->node); in init_tree_roots()
2837 tree_root->commit_root = btrfs_root_node(tree_root); in init_tree_roots()
3209 struct btrfs_root *tree_root; in open_ctree() local
3224 fs_info->tree_root = tree_root; in open_ctree()
[all …]
A Dtransaction.c1200 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1211 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1239 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1240 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1372 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1545 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1568 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1826 root_item = &fs_info->tree_root->root_item; in update_super_roots()
2302 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
2303 fs_info->tree_root->node); in btrfs_commit_transaction()
[all …]
A Dblock-rsv.c364 btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv()
434 !fs_info->dev_root || !fs_info->chunk_root || !fs_info->tree_root) in btrfs_init_global_block_rsv()
440 fs_info->tree_root->block_rsv = &fs_info->global_block_rsv; in btrfs_init_global_block_rsv()
A Dexport.c154 root = fs_info->tree_root; in btrfs_get_parent()
230 root = fs_info->tree_root; in btrfs_get_name()
A Dtree-log.h69 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
A Dfree-space-tree.c1142 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1148 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1234 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_clear_free_space_tree() local
1238 trans = btrfs_start_transaction(tree_root, 0); in btrfs_clear_free_space_tree()
A Ddisk-io.h61 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
A Dbtrfs_inode.h305 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
A Dfree-space-cache.c115 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode()
203 ret = btrfs_get_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode()
207 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode()
257 ret = btrfs_search_slot(trans, trans->fs_info->tree_root, &key, path, in btrfs_remove_free_space_inode()
264 ret = btrfs_del_item(trans, trans->fs_info->tree_root, path); in btrfs_remove_free_space_inode()
969 ret = __load_free_space_cache(fs_info->tree_root, inode, &tmp_ctl, in load_free_space_cache()
1304 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io()
1482 ret = __btrfs_write_out_cache(fs_info->tree_root, inode, ctl, in btrfs_write_out_cache()
3993 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_set_free_space_cache_v1_active()
A Dtree-log.c143 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() local
152 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans()
153 mutex_lock(&tree_root->log_mutex); in start_log_trans()
157 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans()
161 mutex_unlock(&tree_root->log_mutex); in start_log_trans()
3222 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3226 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3230 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3468 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root->state); in btrfs_free_log_root_tree()
6534 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
A Dioctl.c530 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
613 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol()
2012 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
2528 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user()
2717 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info()
2722 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info()
2793 root = BTRFS_I(inode)->root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
3442 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
4495 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
A Dsuper.c1170 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
1291 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1390 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
2436 struct btrfs_root *root = fs_info->tree_root; in btrfs_freeze()
A Dqgroup.c931 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
980 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1040 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1076 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable()
1091 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1183 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
A Drelocation.c804 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
811 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
941 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root()
3310 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
4101 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root()
4109 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root()
4148 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
A Ddir-item.c156 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
A Dextent-tree.c5573 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot() local
5602 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
5604 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
5717 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
5740 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
5742 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
5761 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot()
5773 btrfs_del_orphan_item(trans, tree_root, in btrfs_drop_snapshot()
A Ddev-replace.c877 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
1100 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_cancel()
A Dvolumes.c3382 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_may_alloc_data_chunk()
3399 struct btrfs_root *root = fs_info->tree_root; in insert_balance_item()
3452 struct btrfs_root *root = fs_info->tree_root; in del_balance_item()
4468 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
4604 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
4739 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
4748 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
7340 struct btrfs_root *root = fs_info->tree_root; in btrfs_read_sys_array()
A Dordered-data.c551 if (root != fs_info->tree_root) in btrfs_remove_ordered_extent()
A Dctree.h187 __le64 tree_root; member
628 struct btrfs_root *tree_root; member
2267 tree_root, 64);
A Dinode.c2268 root != fs_info->tree_root) in btrfs_clear_delalloc_extent()
3098 BUG_ON(root == fs_info->tree_root); in btrfs_finish_ordered_io()
3547 if (ret == -ENOENT && root == fs_info->tree_root) { in btrfs_orphan_cleanup()
4337 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, in may_destroy_subvol()
4355 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in may_destroy_subvol()
4511 fs_info->tree_root, in btrfs_delete_subvolume()
5747 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in fixup_tree_root_location()
A Dblock-group.c2692 struct btrfs_root *root = fs_info->tree_root; in cache_save_setup()
/linux/fs/btrfs/tests/
A Dqgroup-tests.c464 root->fs_info->tree_root = root; in btrfs_test_qgroups()
A Dfree-space-tree-tests.c450 root->fs_info->tree_root = root; in run_test()

Completed in 134 milliseconds

12