Lines Matching refs:em_tree
1769 struct extent_map_tree *em_tree; in find_next_chunk() local
1774 em_tree = &fs_info->mapping_tree; in find_next_chunk()
1775 read_lock(&em_tree->lock); in find_next_chunk()
1776 n = rb_last(&em_tree->map.rb_root); in find_next_chunk()
1781 read_unlock(&em_tree->lock); in find_next_chunk()
3033 struct extent_map_tree *em_tree; in btrfs_get_chunk_map() local
3036 em_tree = &fs_info->mapping_tree; in btrfs_get_chunk_map()
3037 read_lock(&em_tree->lock); in btrfs_get_chunk_map()
3038 em = lookup_extent_mapping(em_tree, logical, length); in btrfs_get_chunk_map()
3039 read_unlock(&em_tree->lock); in btrfs_get_chunk_map()
5375 struct extent_map_tree *em_tree; in create_chunk() local
5418 em_tree = &info->mapping_tree; in create_chunk()
5419 write_lock(&em_tree->lock); in create_chunk()
5420 ret = add_extent_mapping(em_tree, em, 0); in create_chunk()
5422 write_unlock(&em_tree->lock); in create_chunk()
5426 write_unlock(&em_tree->lock); in create_chunk()
5452 write_lock(&em_tree->lock); in create_chunk()
5453 remove_extent_mapping(em_tree, em); in create_chunk()
5454 write_unlock(&em_tree->lock); in create_chunk()
8122 struct extent_map_tree *em_tree = &fs_info->mapping_tree; in verify_one_dev_extent() local
8131 read_lock(&em_tree->lock); in verify_one_dev_extent()
8132 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in verify_one_dev_extent()
8133 read_unlock(&em_tree->lock); in verify_one_dev_extent()
8223 struct extent_map_tree *em_tree = &fs_info->mapping_tree; in verify_chunk_dev_extent_mapping() local
8228 read_lock(&em_tree->lock); in verify_chunk_dev_extent_mapping()
8229 for (node = rb_first_cached(&em_tree->map); node; node = rb_next(node)) { in verify_chunk_dev_extent_mapping()
8242 read_unlock(&em_tree->lock); in verify_chunk_dev_extent_mapping()