Home
last modified time | relevance | path

Searched refs:em_tree (Results 1 – 12 of 12) sorted by relevance

/fs/btrfs/
Dcompression.c459 struct extent_map_tree *em_tree; in add_ra_bio_pages() local
465 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages()
507 read_lock(&em_tree->lock); in add_ra_bio_pages()
508 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
510 read_unlock(&em_tree->lock); in add_ra_bio_pages()
571 struct extent_map_tree *em_tree; in btrfs_submit_compressed_read() local
588 em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_submit_compressed_read()
591 read_lock(&em_tree->lock); in btrfs_submit_compressed_read()
592 em = lookup_extent_mapping(em_tree, in btrfs_submit_compressed_read()
595 read_unlock(&em_tree->lock); in btrfs_submit_compressed_read()
Dfile.c538 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_drop_extent_cache() local
563 write_lock(&em_tree->lock); in btrfs_drop_extent_cache()
564 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_cache()
566 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
574 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
581 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
618 replace_extent_mapping(em_tree, em, split, modified); in btrfs_drop_extent_cache()
657 replace_extent_mapping(em_tree, em, split, in btrfs_drop_extent_cache()
660 ret = add_extent_mapping(em_tree, split, in btrfs_drop_extent_cache()
669 remove_extent_mapping(em_tree, em); in btrfs_drop_extent_cache()
[all …]
Ddev-replace.c639 struct extent_map_tree *em_tree = &fs_info->mapping_tree.map_tree; in btrfs_dev_replace_update_device_in_mapping_tree() local
645 write_lock(&em_tree->lock); in btrfs_dev_replace_update_device_in_mapping_tree()
647 em = lookup_extent_mapping(em_tree, start, (u64)-1); in btrfs_dev_replace_update_device_in_mapping_tree()
657 write_unlock(&em_tree->lock); in btrfs_dev_replace_update_device_in_mapping_tree()
Dinode.c928 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in get_extent_allocation_hint() local
932 read_lock(&em_tree->lock); in get_extent_allocation_hint()
933 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
942 em = search_extent_mapping(em_tree, 0, 0); in get_extent_allocation_hint()
952 read_unlock(&em_tree->lock); in get_extent_allocation_hint()
5054 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_cont_expand() local
5129 write_lock(&em_tree->lock); in btrfs_cont_expand()
5130 err = add_extent_mapping(em_tree, hole_em, 1); in btrfs_cont_expand()
5131 write_unlock(&em_tree->lock); in btrfs_cont_expand()
6975 static int merge_extent_mapping(struct extent_map_tree *em_tree, in merge_extent_mapping() argument
[all …]
Dvolumes.c1616 struct extent_map_tree *em_tree; in find_next_chunk() local
1621 em_tree = &fs_info->mapping_tree.map_tree; in find_next_chunk()
1622 read_lock(&em_tree->lock); in find_next_chunk()
1623 n = rb_last(&em_tree->map); in find_next_chunk()
1628 read_unlock(&em_tree->lock); in find_next_chunk()
2806 struct extent_map_tree *em_tree; in get_chunk_map() local
2809 em_tree = &fs_info->mapping_tree.map_tree; in get_chunk_map()
2810 read_lock(&em_tree->lock); in get_chunk_map()
2811 em = lookup_extent_mapping(em_tree, logical, length); in get_chunk_map()
2812 read_unlock(&em_tree->lock); in get_chunk_map()
[all …]
Ddisk-io.c228 struct extent_map_tree *em_tree = &inode->extent_tree; in btree_get_extent() local
232 read_lock(&em_tree->lock); in btree_get_extent()
233 em = lookup_extent_mapping(em_tree, start, len); in btree_get_extent()
236 read_unlock(&em_tree->lock); in btree_get_extent()
239 read_unlock(&em_tree->lock); in btree_get_extent()
252 write_lock(&em_tree->lock); in btree_get_extent()
253 ret = add_extent_mapping(em_tree, em, 0); in btree_get_extent()
256 em = lookup_extent_mapping(em_tree, start, len); in btree_get_extent()
263 write_unlock(&em_tree->lock); in btree_get_extent()
Dioctl.c892 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache() local
895 read_lock(&em_tree->lock); in check_defrag_in_cache()
896 em = lookup_extent_mapping(em_tree, offset, PAGE_SIZE); in check_defrag_in_cache()
897 read_unlock(&em_tree->lock); in check_defrag_in_cache()
983 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent() local
992 read_lock(&em_tree->lock); in defrag_lookup_extent()
993 em = lookup_extent_mapping(em_tree, start, len); in defrag_lookup_extent()
994 read_unlock(&em_tree->lock); in defrag_lookup_extent()
3339 struct extent_map_tree *em_tree = &inode->extent_tree; in clone_update_extent_map() local
3373 write_lock(&em_tree->lock); in clone_update_extent_map()
[all …]
Dfree-space-cache.c3363 struct extent_map_tree *em_tree; in btrfs_put_block_group_trimming() local
3374 em_tree = &fs_info->mapping_tree.map_tree; in btrfs_put_block_group_trimming()
3375 write_lock(&em_tree->lock); in btrfs_put_block_group_trimming()
3376 em = lookup_extent_mapping(em_tree, block_group->key.objectid, in btrfs_put_block_group_trimming()
3383 remove_extent_mapping(em_tree, em); in btrfs_put_block_group_trimming()
3384 write_unlock(&em_tree->lock); in btrfs_put_block_group_trimming()
Dextent-tree.c9861 struct extent_map_tree *em_tree; in find_first_block_group() local
9864 em_tree = &root->fs_info->mapping_tree.map_tree; in find_first_block_group()
9865 read_lock(&em_tree->lock); in find_first_block_group()
9866 em = lookup_extent_mapping(em_tree, found_key.objectid, in find_first_block_group()
9868 read_unlock(&em_tree->lock); in find_first_block_group()
10762 struct extent_map_tree *em_tree; in btrfs_remove_block_group() local
10764 em_tree = &fs_info->mapping_tree.map_tree; in btrfs_remove_block_group()
10765 write_lock(&em_tree->lock); in btrfs_remove_block_group()
10771 remove_extent_mapping(em_tree, em); in btrfs_remove_block_group()
10772 write_unlock(&em_tree->lock); in btrfs_remove_block_group()
[all …]
Dextent_io.c2182 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_get_io_failure_record() local
2198 read_lock(&em_tree->lock); in btrfs_get_io_failure_record()
2199 em = lookup_extent_mapping(em_tree, start, failrec->len); in btrfs_get_io_failure_record()
2201 read_unlock(&em_tree->lock); in btrfs_get_io_failure_record()
2210 read_unlock(&em_tree->lock); in btrfs_get_io_failure_record()
Drelocation.c3150 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; local
3167 write_lock(&em_tree->lock);
3168 ret = add_extent_mapping(em_tree, em, 0);
3169 write_unlock(&em_tree->lock);
Dtree-log.c4748 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_log_inode() local
5074 write_lock(&em_tree->lock); in btrfs_log_inode()
5093 list_for_each_entry_safe(em, n, &em_tree->modified_extents, in btrfs_log_inode()
5100 write_unlock(&em_tree->lock); in btrfs_log_inode()