Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Droot-tree.c215 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
233 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()
264 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
272 ret = btrfs_del_orphan_item(trans, tree_root, root_objectid); in btrfs_find_orphan_roots()
312 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
333 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
349 ret = btrfs_search_slot(trans, tree_root, in btrfs_del_root_ref()
401 struct btrfs_root *tree_root = trans->fs_info->tree_root; btrfs_add_root_ref() local
[all...]
H A Ddisk-io.c822 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
872 ret = btrfs_insert_root(trans, tree_root, &root->root_key, &root->root_item); in alloc_log_tree()
989 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path()
995 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path()
1004 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path()
1055 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_init_fs_root()
1064 root = read_tree_root_path(tree_root, path, key); in btrfs_init_fs_root()
1142 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root()
1243 btrfs_put_root(fs_info->tree_root);
798 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_create_tree() local
965 read_tree_root_path(struct btrfs_root * tree_root,struct btrfs_path * path,const struct btrfs_key * key) read_tree_root_path() argument
1031 btrfs_read_tree_root(struct btrfs_root * tree_root,const struct btrfs_key * key) btrfs_read_tree_root() argument
2053 load_global_roots_objectid(struct btrfs_root * tree_root,struct btrfs_path * path,u64 objectid,const char * name) load_global_roots_objectid() argument
2134 load_global_roots(struct btrfs_root * tree_root) load_global_roots() argument
2161 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_read_roots() local
2673 struct btrfs_root *tree_root = fs_info->tree_root; init_tree_roots() local
3288 struct btrfs_root *tree_root; open_ctree() local
[all...]
H A Duuid-tree.c394 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
529 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
538 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
H A Dtransaction.c1323 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root()
1334 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1368 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1369 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1551 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1674 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot()
1711 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1837 ret = btrfs_insert_root(trans, tree_root, in create_pending_snapshot()
1322 struct btrfs_root *tree_root = fs_info->tree_root; update_cowonly_root() local
1673 struct btrfs_root *tree_root = fs_info->tree_root; create_pending_snapshot() local
[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.c1173 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree()
1179 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1282 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_delete_free_space_tree()
1291 trans = btrfs_start_transaction(tree_root, 0); in btrfs_delete_free_space_tree()
1171 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_create_free_space_tree() local
1280 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_delete_free_space_tree() local
H A Dqgroup.c495 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_qgroup_config()
515 qgroup->qgroupid > tree_root->free_objectid) in btrfs_read_qgroup_config()
521 tree_root->free_objectid = qgroup->qgroupid + 1; in btrfs_read_qgroup_config()
1001 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable()
1059 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1127 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1142 /* Release locks on tree_root before we access quota_root */ in btrfs_quota_enable()
1168 ret = btrfs_search_slot_for_read(tree_root, in btrfs_quota_enable()
496 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_read_qgroup_config() local
1003 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_quota_enable() local
[all...]
H A Dfree-space-cache.c147 inode = __lookup_free_space_inode(fs_info->tree_root, path, in lookup_free_space_inode()
231 ret = btrfs_get_free_objectid(trans->fs_info->tree_root, &ino); in create_free_space_inode()
235 return __create_free_space_inode(trans->fs_info->tree_root, trans, path, in create_free_space_inode()
284 ret = btrfs_search_slot(trans, trans->fs_info->tree_root, &key, path, in btrfs_remove_free_space_inode()
291 return btrfs_del_item(trans, trans->fs_info->tree_root, path); in btrfs_remove_free_space_inode()
1013 ret = __load_free_space_cache(fs_info->tree_root, inode, &tmp_ctl, in load_free_space_cache()
1347 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, in btrfs_wait_cache_io()
4186 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_set_free_space_cache_v1_active()
H A Dioctl.c553 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
643 ret = btrfs_insert_root(trans, fs_info->tree_root, &key, in create_subvol()
1357 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
1842 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_search_path_in_tree_user()
2011 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_ioctl_get_subvol_info()
2016 ret = btrfs_next_leaf(fs_info->tree_root, path); in btrfs_ioctl_get_subvol_info()
2151 root = root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2827 di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, in get_block_group_info()
3931 ret = btrfs_update_root(trans, fs_info->tree_root, in _btrfs_ioctl_set_received_subvol()
H A Dtree-log.c281 struct btrfs_root *tree_root = fs_info->tree_root;
290 if (!test_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state)) { in start_log_trans()
291 mutex_lock(&tree_root->log_mutex); in start_log_trans()
295 set_bit(BTRFS_ROOT_HAS_LOG_TREE, &tree_root->state); in start_log_trans()
299 mutex_unlock(&tree_root->log_mutex); in start_log_trans()
3426 mutex_lock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3431 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3436 mutex_unlock(&fs_info->tree_root->log_mutex); in btrfs_sync_log()
3702 clear_bit(BTRFS_ROOT_HAS_LOG_TREE, &fs_info->tree_root
292 struct btrfs_root *tree_root = fs_info->tree_root; start_log_trans() local
[all...]
H A Drelocation.c720 ret = btrfs_insert_root(trans, fs_info->tree_root, in btrfs_init_reloc_root()
725 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in btrfs_init_reloc_root()
858 ret = btrfs_update_root(trans, fs_info->tree_root, in replace_file_extents()
3269 struct btrfs_root *root = fs_info->tree_root; in delete_v1_space_cache()
4773 trans = btrfs_start_transaction_fallback_global_rsv(fs_info->tree_root, num_items); in adjust_identity_remap_count()
5511 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_relocation()
5519 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_recover_relocation()
5557 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
5575 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &key); in btrfs_recover_relocation()
H A Dextent-tree.c6264 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_drop_snapshot()
6293 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
6295 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
6414 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
6439 trans = btrfs_join_transaction(tree_root); in btrfs_drop_snapshot()
6441 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
6459 ret = btrfs_find_root(tree_root, &root->root_key, path, in btrfs_drop_snapshot()
6472 btrfs_del_orphan_item(trans, tree_root, btrfs_root_id(root)); in btrfs_drop_snapshot()
6253 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_drop_snapshot() local
H A Dfs.h505 struct btrfs_root *tree_root;
492 struct btrfs_root *tree_root; global() member
H A Dinode.c2666 root != fs_info->tree_root) in btrfs_clear_delalloc_extent()
3125 BUG_ON(root == fs_info->tree_root); in insert_reserved_file_extent()
3622 if (!inode && root == fs_info->tree_root) { in btrfs_run_delayed_iput()
4519 di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path,
4537 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_unlink()
4672 fs_info->tree_root, in btrfs_unlink_subvol()
5657 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_evict_inode()
5734 if (args->root && args->root == args->root->fs_info->tree_root && in btrfs_evict_inode()
H A Dspace-info.c855 struct btrfs_root *root = fs_info->tree_root; in flush_space()
H A Dvolumes.c3789 trans = btrfs_join_transaction(fs_info->tree_root); in insert_balance_item()
3844 struct btrfs_root *root = fs_info->tree_root; in del_balance_item()
3896 struct btrfs_root *root = fs_info->tree_root; in update_balance_args()
5094 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0);
H A Dsysfs.c881 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_force_chunk_alloc_store()
H A Dzoned.c2845 trans = btrfs_join_transaction(fs_info->tree_root); in btrfs_zoned_reserve_data_reloc_bg()
H A Dscrub.c3229 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_scrub_dev()
H A Dbackref.c607 * tree_root's commit root, thus the btrfs_get_fs_root_commit_root usage in resolve_indirect_ref()
2429 trans = btrfs_attach_transaction(ctx->fs_info->tree_root); in iterate_extent_inodes()
/linux/fs/btrfs/tests/
H A Dqgroup-tests.c492 root->fs_info->tree_root = root; in btrfs_test_qgroups()
H A Draid-stripe-tree-tests.c1110 root->fs_info->tree_root = root; in run_test()