Home
last modified time | relevance | path

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

/fs/btrfs/
Dcompression.c451 struct extent_map_tree *em_tree; in add_ra_bio_pages() local
458 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages()
501 read_lock(&em_tree->lock); in add_ra_bio_pages()
502 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
504 read_unlock(&em_tree->lock); in add_ra_bio_pages()
565 struct extent_map_tree *em_tree; in btrfs_submit_compressed_read() local
584 em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_submit_compressed_read()
587 read_lock(&em_tree->lock); in btrfs_submit_compressed_read()
588 em = lookup_extent_mapping(em_tree, in btrfs_submit_compressed_read()
591 read_unlock(&em_tree->lock); in btrfs_submit_compressed_read()
Dvolumes.c1369 struct extent_map_tree *em_tree; in find_next_chunk() local
1374 em_tree = &fs_info->mapping_tree.map_tree; in find_next_chunk()
1375 read_lock(&em_tree->lock); in find_next_chunk()
1376 n = rb_last(&em_tree->map); in find_next_chunk()
1381 read_unlock(&em_tree->lock); in find_next_chunk()
2574 struct extent_map_tree *em_tree; in btrfs_remove_chunk() local
2585 em_tree = &root->fs_info->mapping_tree.map_tree; in btrfs_remove_chunk()
2587 read_lock(&em_tree->lock); in btrfs_remove_chunk()
2588 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in btrfs_remove_chunk()
2589 read_unlock(&em_tree->lock); in btrfs_remove_chunk()
[all …]
Dfile.c541 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_drop_extent_cache() local
566 write_lock(&em_tree->lock); in btrfs_drop_extent_cache()
567 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_cache()
569 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
577 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
584 write_unlock(&em_tree->lock); in btrfs_drop_extent_cache()
621 replace_extent_mapping(em_tree, em, split, modified); in btrfs_drop_extent_cache()
660 replace_extent_mapping(em_tree, em, split, in btrfs_drop_extent_cache()
663 ret = add_extent_mapping(em_tree, split, in btrfs_drop_extent_cache()
672 remove_extent_mapping(em_tree, em); in btrfs_drop_extent_cache()
[all …]
Dinode.c650 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in submit_compressed_extents() local
773 write_lock(&em_tree->lock); in submit_compressed_extents()
774 ret = add_extent_mapping(em_tree, em, 1); in submit_compressed_extents()
775 write_unlock(&em_tree->lock); in submit_compressed_extents()
843 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in get_extent_allocation_hint() local
847 read_lock(&em_tree->lock); in get_extent_allocation_hint()
848 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
857 em = search_extent_mapping(em_tree, 0, 0); in get_extent_allocation_hint()
867 read_unlock(&em_tree->lock); in get_extent_allocation_hint()
900 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in cow_file_range() local
[all …]
Ddev-replace.c612 struct extent_map_tree *em_tree = &fs_info->mapping_tree.map_tree; in btrfs_dev_replace_update_device_in_mapping_tree() local
618 write_lock(&em_tree->lock); in btrfs_dev_replace_update_device_in_mapping_tree()
620 em = lookup_extent_mapping(em_tree, start, (u64)-1); in btrfs_dev_replace_update_device_in_mapping_tree()
630 write_unlock(&em_tree->lock); in btrfs_dev_replace_update_device_in_mapping_tree()
Dioctl.c906 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache() local
909 read_lock(&em_tree->lock); in check_defrag_in_cache()
910 em = lookup_extent_mapping(em_tree, offset, PAGE_CACHE_SIZE); in check_defrag_in_cache()
911 read_unlock(&em_tree->lock); in check_defrag_in_cache()
997 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent() local
1006 read_lock(&em_tree->lock); in defrag_lookup_extent()
1007 em = lookup_extent_mapping(em_tree, start, len); in defrag_lookup_extent()
1008 read_unlock(&em_tree->lock); in defrag_lookup_extent()
3151 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in clone_update_extent_map() local
3186 write_lock(&em_tree->lock); in clone_update_extent_map()
[all …]
Ddisk-io.c221 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btree_get_extent() local
225 read_lock(&em_tree->lock); in btree_get_extent()
226 em = lookup_extent_mapping(em_tree, start, len); in btree_get_extent()
230 read_unlock(&em_tree->lock); in btree_get_extent()
233 read_unlock(&em_tree->lock); in btree_get_extent()
246 write_lock(&em_tree->lock); in btree_get_extent()
247 ret = add_extent_mapping(em_tree, em, 0); in btree_get_extent()
250 em = lookup_extent_mapping(em_tree, start, len); in btree_get_extent()
257 write_unlock(&em_tree->lock); in btree_get_extent()
Dextent_io.c2183 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_get_io_failure_record() local
2199 read_lock(&em_tree->lock); in btrfs_get_io_failure_record()
2200 em = lookup_extent_mapping(em_tree, start, failrec->len); in btrfs_get_io_failure_record()
2202 read_unlock(&em_tree->lock); in btrfs_get_io_failure_record()
2211 read_unlock(&em_tree->lock); in btrfs_get_io_failure_record()
Dtree-log.c4263 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_log_inode() local
4512 write_lock(&em_tree->lock); in btrfs_log_inode()
4531 list_for_each_entry_safe(em, n, &em_tree->modified_extents, in btrfs_log_inode()
4538 write_unlock(&em_tree->lock); in btrfs_log_inode()
Drelocation.c3063 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; local
3080 write_lock(&em_tree->lock);
3081 ret = add_extent_mapping(em_tree, em, 0);
3082 write_unlock(&em_tree->lock);