Searched refs:em_tree (Results 1 – 7 of 7) sorted by relevance
/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 16 struct extent_map_tree *em_tree = &inode->extent_tree; in free_extent_map_tree() local 21 write_lock(&em_tree->lock); in free_extent_map_tree() 22 while (!RB_EMPTY_ROOT(&em_tree->root)) { in free_extent_map_tree() 23 node = rb_first(&em_tree->root); in free_extent_map_tree() 41 write_unlock(&em_tree->lock); in free_extent_map_tree() 64 struct extent_map_tree *em_tree = &inode->extent_tree; in test_case_1() local 83 write_lock(&em_tree->lock); in test_case_1() 85 write_unlock(&em_tree->lock); in test_case_1() 105 write_lock(&em_tree->lock); in test_case_1() 107 write_unlock(&em_tree->lock); in test_case_1() [all …]
|
/linux/fs/btrfs/ |
H A D | compression.c | 426 struct extent_map_tree *em_tree; in add_ra_bio_pages() local 430 em_tree = &BTRFS_I(inode)->extent_tree; in add_ra_bio_pages() 503 read_lock(&em_tree->lock); in add_ra_bio_pages() 504 em = lookup_extent_mapping(em_tree, cur, page_end + 1 - cur); in add_ra_bio_pages() 505 read_unlock(&em_tree->lock); in add_ra_bio_pages() 570 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_submit_compressed_read() local 583 read_lock(&em_tree->lock); in btrfs_submit_compressed_read() 584 em = lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read() 585 read_unlock(&em_tree->lock); in btrfs_submit_compressed_read()
|
H A D | extent_map.c | 806 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_drop_extent_map_range() local 832 write_lock(&em_tree->lock); in btrfs_drop_extent_map_range() 833 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_map_range() 983 write_unlock(&em_tree->lock); in btrfs_drop_extent_map_range() 1039 struct extent_map_tree *em_tree = &inode->extent_tree; in split_extent_map() local 1059 write_lock(&em_tree->lock); in split_extent_map() 1060 em = lookup_extent_mapping(em_tree, start, len); in split_extent_map() 1110 write_unlock(&em_tree->lock); in split_extent_map()
|
H A D | defrag.c | 749 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent() local 758 read_lock(&em_tree->lock); in defrag_lookup_extent() 759 em = lookup_extent_mapping(em_tree, start, sectorsize); in defrag_lookup_extent() 760 read_unlock(&em_tree->lock); in defrag_lookup_extent()
|
H A D | zoned.c | 1781 struct extent_map_tree *em_tree = &ordered->inode->extent_tree; in btrfs_rewrite_logical_zoned() local 1786 write_lock(&em_tree->lock); in btrfs_rewrite_logical_zoned() 1787 em = search_extent_mapping(em_tree, ordered->file_offset, in btrfs_rewrite_logical_zoned() 1793 write_unlock(&em_tree->lock); in btrfs_rewrite_logical_zoned()
|
H A D | inode.c | 1267 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_get_extent_allocation_hint() local 1271 read_lock(&em_tree->lock); in btrfs_get_extent_allocation_hint() 1272 em = search_extent_mapping(em_tree, start, num_bytes); in btrfs_get_extent_allocation_hint() 1281 em = search_extent_mapping(em_tree, 0, 0); in btrfs_get_extent_allocation_hint() 1291 read_unlock(&em_tree->lock); in btrfs_get_extent_allocation_hint() 6818 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_get_extent() local 6820 read_lock(&em_tree->lock); in btrfs_get_extent() 6821 em = lookup_extent_mapping(em_tree, start, len); in btrfs_get_extent() 6822 read_unlock(&em_tree->lock); in btrfs_get_extent() 6977 write_lock(&em_tree->lock); in btrfs_get_extent() [all …]
|
H A D | tree-log.c | 6427 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_log_inode() local 6661 write_lock(&em_tree->lock); in btrfs_log_inode() 6662 list_for_each_entry_safe(em, n, &em_tree->modified_extents, list) in btrfs_log_inode() 6664 write_unlock(&em_tree->lock); in btrfs_log_inode()
|