Home
last modified time | relevance | path

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

/linux-4.4.14/fs/btrfs/
Drelocation.c161 struct btrfs_root *extent_root; member
610 root = read_fs_root(rc->extent_root->fs_info, root_objectid); in find_tree_root()
733 ret = btrfs_search_slot(NULL, rc->extent_root, &key, path1,
771 ret = btrfs_next_leaf(rc->extent_root, path1);
885 root = read_fs_root(rc->extent_root->fs_info, key.offset);
2268 struct btrfs_root *root = rc->extent_root;
2289 trans = btrfs_join_transaction(rc->extent_root);
2292 btrfs_block_rsv_release(rc->extent_root,
2299 btrfs_end_transaction(trans, rc->extent_root);
2300 btrfs_block_rsv_release(rc->extent_root,
[all …]
Dextent-tree.c100 struct btrfs_root *extent_root, u64 flags,
403 struct btrfs_root *extent_root; in caching_thread() local
416 extent_root = fs_info->extent_root; in caching_thread()
430 if (btrfs_should_fragment_free_space(extent_root, block_group)) in caching_thread()
452 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in caching_thread()
483 ret = btrfs_next_leaf(extent_root, path); in caching_thread()
543 if (btrfs_should_fragment_free_space(extent_root, block_group)) { in caching_thread()
553 fragment_free_space(extent_root, block_group); in caching_thread()
562 free_excluded_extents(extent_root, block_group); in caching_thread()
659 btrfs_should_fragment_free_space(fs_info->extent_root, in cache_block_group()
[all …]
Dbackref.c831 struct btrfs_root *extent_root = fs_info->extent_root; in __add_keyed_refs() local
838 ret = btrfs_next_item(extent_root, path); in __add_keyed_refs()
975 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
1080 eb = read_tree_block(fs_info->extent_root,
1491 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
1495 ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0);
1503 size = fs_info->extent_root->nodesize;
1688 trans = btrfs_join_transaction(fs_info->extent_root);
1726 btrfs_end_transaction(trans, fs_info->extent_root);
Dvolumes.c2733 struct btrfs_root *extent_root = root->fs_info->extent_root; in btrfs_remove_chunk() local
2761 check_system_chunk(trans, extent_root, map->type); in btrfs_remove_chunk()
2809 ret = btrfs_remove_block_group(trans, extent_root, chunk_offset, em); in btrfs_remove_chunk()
2811 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_remove_chunk()
2823 struct btrfs_root *extent_root; in btrfs_relocate_chunk() local
2828 extent_root = root->fs_info->extent_root; in btrfs_relocate_chunk()
2844 ret = btrfs_can_relocate(extent_root, chunk_offset); in btrfs_relocate_chunk()
2850 ret = btrfs_relocate_block_group(extent_root, chunk_offset); in btrfs_relocate_chunk()
4486 struct btrfs_root *extent_root, u64 start, in __btrfs_alloc_chunk() argument
4489 struct btrfs_fs_info *info = extent_root->fs_info; in __btrfs_alloc_chunk()
[all …]
Dtree-defrag.c44 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
Dvolumes.h437 struct btrfs_root *extent_root, u64 type);
503 struct btrfs_root *extent_root,
Dreada.c725 ret = reada_tree_block_flagged(fs_info->extent_root, logical, in reada_start_machine_dev()
728 __readahead_hook(fs_info->extent_root, NULL, logical, ret); in reada_start_machine_dev()
730 __readahead_hook(fs_info->extent_root, eb, eb->start, ret); in reada_start_machine_dev()
Ddisk-io.c1655 return fs_info->extent_root; in btrfs_get_fs_root()
2024 btrfs_set_backup_extent_root(root_backup, info->extent_root->node->start); in backup_super_roots()
2026 btrfs_header_generation(info->extent_root->node)); in backup_super_roots()
2028 btrfs_header_level(info->extent_root->node)); in backup_super_roots()
2162 free_root_extent_buffers(info->extent_root); in free_root_pointers()
2431 fs_info->extent_root = root; in btrfs_read_roots()
2985 ret = btrfs_read_block_groups(fs_info->extent_root); in open_ctree()
Dtransaction.c301 WARN_ON(root == root->fs_info->extent_root); in record_root_in_trans()
1152 if (root != fs_info->extent_root) in commit_cowonly_roots()
1175 list_add_tail(&fs_info->extent_root->dirty_list, in commit_cowonly_roots()
Dctree.h421 __le64 extent_root; member
1424 struct btrfs_root *extent_root; member
2978 extent_root, 64);
3733 kfree(fs_info->extent_root); in free_fs_info()
Dscrub.c1058 fixup_nodatasum->root = fs_info->extent_root; in scrub_handle_errored_block()
2842 struct btrfs_root *root = fs_info->extent_root; in scrub_raid56_parity()
3064 struct btrfs_root *root = fs_info->extent_root; in scrub_stripe()
4135 root = fs_info->extent_root; in copy_nocow_pages_worker()
Dqgroup.c2205 ret = btrfs_search_slot_for_read(fs_info->extent_root, in qgroup_rescan_leaf()
2253 num_bytes = fs_info->extent_root->nodesize; in qgroup_rescan_leaf()
Dfree-space-cache.c1980 if (btrfs_should_fragment_free_space(block_group->fs_info->extent_root, in use_bitmap()
3132 ret = btrfs_discard_extent(fs_info->extent_root, in do_trimming()
Dioctl.c714 root->fs_info->extent_root, 1); in create_snapshot()
719 root->fs_info->extent_root); in create_snapshot()
2587 ret = btrfs_defrag_root(root->fs_info->extent_root); in btrfs_ioctl_defrag()
Dtree-log.c306 ret = btrfs_pin_extent_for_log_replay(log->fs_info->extent_root, in process_one_buffer()
/linux-4.4.14/fs/btrfs/tests/
Dqgroup-tests.c465 root->fs_info->extent_root = root; in btrfs_test_qgroups()
Dfree-space-tests.c910 root->fs_info->extent_root = root; in btrfs_test_free_space_cache()