Lines Matching refs:map_tree

1838 	em_tree = &root->fs_info->mapping_tree.map_tree;  in btrfs_relocate_chunk()
2623 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in __btrfs_alloc_chunk()
2824 struct btrfs_mapping_tree *map_tree = &root->fs_info->mapping_tree; in btrfs_chunk_readonly() local
2828 read_lock(&map_tree->map_tree.lock); in btrfs_chunk_readonly()
2829 em = lookup_extent_mapping(&map_tree->map_tree, chunk_offset, 1); in btrfs_chunk_readonly()
2830 read_unlock(&map_tree->map_tree.lock); in btrfs_chunk_readonly()
2852 extent_map_tree_init(&tree->map_tree, GFP_NOFS); in btrfs_mapping_init()
2860 write_lock(&tree->map_tree.lock); in btrfs_mapping_tree_free()
2861 em = lookup_extent_mapping(&tree->map_tree, 0, (u64)-1); in btrfs_mapping_tree_free()
2863 remove_extent_mapping(&tree->map_tree, em); in btrfs_mapping_tree_free()
2864 write_unlock(&tree->map_tree.lock); in btrfs_mapping_tree_free()
2875 int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len) in btrfs_num_copies() argument
2879 struct extent_map_tree *em_tree = &map_tree->map_tree; in btrfs_num_copies()
2915 static int __btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, in __btrfs_map_block() argument
2922 struct extent_map_tree *em_tree = &map_tree->map_tree; in __btrfs_map_block()
3187 int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, in btrfs_map_block() argument
3191 return __btrfs_map_block(map_tree, rw, logical, length, multi_ret, in btrfs_map_block()
3195 int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree, in btrfs_rmap_block() argument
3199 struct extent_map_tree *em_tree = &map_tree->map_tree; in btrfs_rmap_block()
3365 struct btrfs_mapping_tree *map_tree; in btrfs_map_bio() local
3377 map_tree = &root->fs_info->mapping_tree; in btrfs_map_bio()
3380 ret = btrfs_map_block(map_tree, rw, logical, &map_length, &multi, in btrfs_map_bio()
3476 struct btrfs_mapping_tree *map_tree = &root->fs_info->mapping_tree; in read_one_chunk() local
3490 read_lock(&map_tree->map_tree.lock); in read_one_chunk()
3491 em = lookup_extent_mapping(&map_tree->map_tree, logical, 1); in read_one_chunk()
3492 read_unlock(&map_tree->map_tree.lock); in read_one_chunk()
3551 write_lock(&map_tree->map_tree.lock); in read_one_chunk()
3552 ret = add_extent_mapping(&map_tree->map_tree, em); in read_one_chunk()
3553 write_unlock(&map_tree->map_tree.lock); in read_one_chunk()