Searched refs:map_tree (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.15/fs/btrfs/ |
D | volumes.c | 6956 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in read_one_chunk() local 6990 read_lock(&map_tree->lock); in read_one_chunk() 6991 em = lookup_extent_mapping(map_tree, logical, 1); in read_one_chunk() 6992 read_unlock(&map_tree->lock); in read_one_chunk() 7061 write_lock(&map_tree->lock); in read_one_chunk() 7062 ret = add_extent_mapping(map_tree, em, 0); in read_one_chunk() 7063 write_unlock(&map_tree->lock); in read_one_chunk() 7391 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in btrfs_check_rw_degradable() local 7396 read_lock(&map_tree->lock); in btrfs_check_rw_degradable() 7397 em = lookup_extent_mapping(map_tree, 0, (u64)-1); in btrfs_check_rw_degradable() [all …]
|
D | block-group.c | 1912 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in check_chunk_block_group_mappings() local 1919 read_lock(&map_tree->lock); in check_chunk_block_group_mappings() 1925 em = lookup_extent_mapping(map_tree, start, 1); in check_chunk_block_group_mappings() 1926 read_unlock(&map_tree->lock); in check_chunk_block_group_mappings()
|
D | scrub.c | 3586 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in scrub_chunk() local 3592 read_lock(&map_tree->lock); in scrub_chunk() 3593 em = lookup_extent_mapping(map_tree, chunk_offset, 1); in scrub_chunk() 3594 read_unlock(&map_tree->lock); in scrub_chunk()
|
D | inode.c | 5433 struct extent_map_tree *map_tree = &BTRFS_I(inode)->extent_tree; in evict_inode_truncate_pages() local 5439 write_lock(&map_tree->lock); in evict_inode_truncate_pages() 5440 while (!RB_EMPTY_ROOT(&map_tree->map.rb_root)) { in evict_inode_truncate_pages() 5443 node = rb_first_cached(&map_tree->map); in evict_inode_truncate_pages() 5447 remove_extent_mapping(map_tree, em); in evict_inode_truncate_pages() 5450 write_unlock(&map_tree->lock); in evict_inode_truncate_pages() 5452 write_lock(&map_tree->lock); in evict_inode_truncate_pages() 5455 write_unlock(&map_tree->lock); in evict_inode_truncate_pages()
|