Home
last modified time | relevance | path

Searched refs:tree_root (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/fs/btrfs/
H A Droot-tree.c209 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() local
228 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
236 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
263 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
270 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
297 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
321 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() local
338 ret = btrfs_search_slot(trans, tree_root, in btrfs_del_root_ref()
395 struct btrfs_root *tree_root = trans->fs_info->tree_root; btrfs_add_root_ref() local
[all...]
H A Ddisk-io.c1133 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
1185 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1284 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path() argument
1289 struct btrfs_fs_info *fs_info = tree_root->fs_info; in read_tree_root_path()
1298 ret = btrfs_find_root(tree_root, key, path, in read_tree_root_path()
1326 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument
1335 root = read_tree_root_path(tree_root, path, key); in btrfs_read_tree_root()
1430 return btrfs_grab_root(fs_info->tree_root); in btrfs_get_global_root()
1506 btrfs_put_root(fs_info->tree_root); in btrfs_free_fs_info()
2334 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_read_roots() local
2647 struct btrfs_root *tree_root = fs_info->tree_root; init_tree_roots() local
2940 struct btrfs_root *tree_root; open_ctree() local
[all...]
H A Dtransaction.c1193 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1204 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1232 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1233 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1364 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1518 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1541 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1668 ret = btrfs_insert_root(trans, tree_root, in create_pending_snapshot()
[all...]
H A Dtree-log.h67 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
H A Dexport.c154 root = fs_info->tree_root; in btrfs_get_parent()
231 root = fs_info->tree_root; in btrfs_get_name()
H A Ddisk-io.h62 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
H A Dblock-rsv.c365 btrfs_root_used(&fs_info->tree_root->root_item); in btrfs_update_global_block_rsv()
433 fs_info->tree_root->block_rsv = &fs_info->global_block_rsv; in btrfs_init_global_block_rsv()
H A Dbtrfs_inode.h287 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
H A Dfree-space-tree.c1144 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1150 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1238 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_clear_free_space_tree() local
1242 trans = btrfs_start_transaction(tree_root, 0); in btrfs_clear_free_space_tree()
H A Dsuper.c1139 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
1275 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1372 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
1857 struct btrfs_root *root = fs_info->tree_root; in btrfs_remount()
2382 struct btrfs_root *root = fs_info->tree_root; in btrfs_freeze()
H A Ddev-replace.c681 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
904 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_cancel()
H A Dqgroup.c932 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
989 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1049 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1064 /* Release locks on tree_root before we access quota_root */ in btrfs_quota_enable()
1085 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable()
1100 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1251 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
H A Drelocation.c801 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
808 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
931 ret = btrfs_update_root(trans, fs_info->tree_root, in btrfs_update_reloc_root()
2997 struct btrfs_root *root = fs_info->tree_root; in delete_block_group_cache()
3720 trans = btrfs_start_transaction(fs_info->tree_root, 0); in mark_garbage_root()
3728 ret = btrfs_update_root(trans, fs_info->tree_root, in mark_garbage_root()
3767 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, in btrfs_recover_relocation()
/kernel/linux/linux-6.6/fs/btrfs/
H A 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, in btrfs_del_root_ref()
410 struct btrfs_root *tree_root = trans->fs_info->tree_root; btrfs_add_root_ref() local
[all...]
H A 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()
2099 load_global_roots_objectid(struct btrfs_root *tree_root, struct btrfs_path *path, u64 objectid, const char *name) load_global_roots_objectid() argument
2181 load_global_roots(struct btrfs_root *tree_root) load_global_roots() argument
2210 struct btrfs_root *tree_root = fs_info->tree_root; btrfs_read_roots() local
2588 struct btrfs_root *tree_root = fs_info->tree_root; init_tree_roots() local
3173 struct btrfs_root *tree_root; open_ctree() local
[all...]
H A Dtransaction.c1251 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root() local
1262 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1296 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1297 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1471 ret2 = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1636 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1673 pending->error = btrfs_get_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1803 ret = btrfs_insert_root(trans, tree_root, in create_pending_snapshot()
[all...]
H A Dexport.c167 root = fs_info->tree_root; in btrfs_get_parent()
243 root = fs_info->tree_root; in btrfs_get_name()
H A Dtree-log.h87 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
H A Ddisk-io.h58 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
H A Dfree-space-tree.c1163 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_free_space_tree() local
1169 trans = btrfs_start_transaction(tree_root, 0); in btrfs_create_free_space_tree()
1259 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_delete_free_space_tree() local
1268 trans = btrfs_start_transaction(tree_root, 0); in btrfs_delete_free_space_tree()
H A 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()
H A 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()
H A 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 in btrfs_free_log_root_tree()
[all...]
H A Dqgroup.c956 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
1019 trans = btrfs_start_transaction(tree_root, 2); in btrfs_quota_enable()
1080 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
1095 /* Release locks on tree_root before we access quota_root */ in btrfs_quota_enable()
1116 ret = btrfs_search_slot_for_read(tree_root, &found_key, in btrfs_quota_enable()
1131 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
1282 trans = btrfs_start_transaction(fs_info->tree_root, 1); in btrfs_quota_disable()
H A Dsuper.c973 struct btrfs_root *root = fs_info->tree_root; in btrfs_get_subvol_name_from_objectid()
1094 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1194 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
2239 struct btrfs_root *root = fs_info->tree_root; in btrfs_freeze()

Completed in 54 milliseconds

123