Home
last modified time | relevance | path

Searched refs:extent_root (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.15/fs/btrfs/
Drelocation.c120 struct btrfs_root *extent_root; member
165 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed()
471 iter = btrfs_backref_iter_alloc(rc->extent_root->fs_info, GFP_NOFS); in build_backref_tree()
1677 struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; in merge_reloc_root()
1841 struct btrfs_root *root = rc->extent_root; in prepare_to_merge()
1863 trans = btrfs_join_transaction(rc->extent_root); in prepare_to_merge()
1946 struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; in merge_reloc_roots()
1953 root = rc->extent_root; in merge_reloc_roots()
2275 struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; in calcu_metadata_size()
2309 struct btrfs_root *root = rc->extent_root; in reserve_metadata_space()
[all …]
Dblock-rsv.c362 num_bytes = btrfs_root_used(&fs_info->extent_root->root_item) + in btrfs_update_global_block_rsv()
433 if (!fs_info->extent_root || !fs_info->csum_root || in btrfs_init_global_block_rsv()
437 fs_info->extent_root->block_rsv = &fs_info->delayed_refs_rsv; in btrfs_init_global_block_rsv()
Dtree-defrag.c30 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
Dextent-tree.c101 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); in btrfs_lookup_data_extent()
156 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); in btrfs_lookup_extent_info()
446 struct btrfs_root *root = trans->fs_info->extent_root; in lookup_extent_data_ref()
522 struct btrfs_root *root = trans->fs_info->extent_root; in insert_extent_data_ref()
629 ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); in remove_extent_data_ref()
688 struct btrfs_root *root = trans->fs_info->extent_root; in lookup_tree_block_ref()
724 ret = btrfs_insert_empty_item(trans, trans->fs_info->extent_root, in insert_tree_block_ref()
790 struct btrfs_root *root = fs_info->extent_root; in lookup_inline_extent_backref()
1192 ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); in remove_extent_backref()
1606 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 1); in run_delayed_extent_op()
[all …]
Dbackref.c1057 struct btrfs_root *extent_root = fs_info->extent_root; in add_keyed_refs() local
1064 ret = btrfs_next_item(extent_root, path); in add_keyed_refs()
1214 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
1758 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
1762 ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0);
1965 trans = btrfs_attach_transaction(fs_info->extent_root);
2343 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
2386 ret = btrfs_next_item(fs_info->extent_root, path);
2460 ret = btrfs_next_item(iter->fs_info->extent_root, iter->path);
Dblock-group.c515 struct btrfs_root *extent_root = fs_info->extent_root; in load_extent_tree_free() local
555 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in load_extent_tree_free()
571 ret = btrfs_find_next_key(extent_root, path, &key, 0, 0); in load_extent_tree_free()
588 ret = btrfs_next_leaf(extent_root, path); in load_extent_tree_free()
842 root = fs_info->extent_root; in remove_block_group_item()
1139 return btrfs_start_transaction_fallback_global_rsv(fs_info->extent_root, in btrfs_start_trans_remove_block_group()
1657 struct btrfs_root *root = fs_info->extent_root; in find_first_block_group()
2146 if (!info->extent_root) in btrfs_read_block_groups()
2262 root = fs_info->extent_root; in insert_block_group_item()
2514 trans = btrfs_join_transaction(fs_info->extent_root); in btrfs_inc_block_group_ro()
[all …]
Dfree-space-tree.c1049 struct btrfs_root *extent_root = trans->fs_info->extent_root; in populate_free_space_tree() local
1083 ret = btrfs_search_slot_for_read(extent_root, &key, path, 1, 0); in populate_free_space_tree()
1117 ret = btrfs_next_item(extent_root, path); in populate_free_space_tree()
Dref-verify.c988 eb = btrfs_read_lock_root_node(fs_info->extent_root); in btrfs_build_ref_tree()
1001 ret = walk_down_tree(fs_info->extent_root, path, level, in btrfs_build_ref_tree()
Dtransaction.c416 WARN_ON(root == fs_info->extent_root); in record_root_in_trans()
1271 if (root != fs_info->extent_root) in commit_cowonly_roots()
1303 list_add_tail(&fs_info->extent_root->dirty_list, in commit_cowonly_roots()
Ddisk-io.c1560 return btrfs_grab_root(fs_info->extent_root); in btrfs_get_global_root()
1633 btrfs_put_root(fs_info->extent_root); in btrfs_free_fs_info()
2026 btrfs_set_backup_extent_root(root_backup, info->extent_root->node->start); in backup_super_roots()
2028 btrfs_header_generation(info->extent_root->node)); in backup_super_roots()
2030 btrfs_header_level(info->extent_root->node)); in backup_super_roots()
2160 free_root_extent_buffers(info->extent_root); in free_root_pointers()
2451 fs_info->extent_root = root; in btrfs_read_roots()
Ddelayed-ref.c194 ret = btrfs_reserve_metadata_bytes(fs_info->extent_root, block_rsv, in btrfs_delayed_refs_rsv_refill()
Dspace-info.c620 struct btrfs_root *root = fs_info->extent_root; in flush_space()
Dctree.h192 __le64 extent_root; member
619 struct btrfs_root *extent_root; member
2257 extent_root, 64);
Dzoned.c977 struct btrfs_root *root = fs_info->extent_root; in calculate_alloc_pointer()
Dscrub.c2901 struct btrfs_root *root = fs_info->extent_root; in scrub_raid56_parity()
3172 struct btrfs_root *root = fs_info->extent_root; in scrub_stripe()
Dvolumes.c5449 struct btrfs_root *extent_root = fs_info->extent_root; in btrfs_chunk_alloc_add_chunk_item() local
5521 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); in btrfs_chunk_alloc_add_chunk_item()
Dqgroup.c3153 ret = btrfs_search_slot_for_read(fs_info->extent_root, in qgroup_rescan_leaf()
/Linux-v5.15/fs/btrfs/tests/
Dqgroup-tests.c458 root->fs_info->extent_root = root; in btrfs_test_qgroups()
Dfree-space-tests.c861 root->fs_info->extent_root = root; in btrfs_test_free_space_cache()