Searched refs:map_tree (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/fs/btrfs/ |
D | volumes.c | 6720 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in read_one_chunk() local 6745 read_lock(&map_tree->lock); in read_one_chunk() 6746 em = lookup_extent_mapping(map_tree, logical, 1); in read_one_chunk() 6747 read_unlock(&map_tree->lock); in read_one_chunk() 6816 write_lock(&map_tree->lock); in read_one_chunk() 6817 ret = add_extent_mapping(map_tree, em, 0); in read_one_chunk() 6818 write_unlock(&map_tree->lock); in read_one_chunk() 7136 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in btrfs_check_rw_degradable() local 7141 read_lock(&map_tree->lock); in btrfs_check_rw_degradable() 7142 em = lookup_extent_mapping(map_tree, 0, (u64)-1); in btrfs_check_rw_degradable() [all …]
|
D | block-group.c | 1641 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in check_chunk_block_group_mappings() local 1648 read_lock(&map_tree->lock); in check_chunk_block_group_mappings() 1654 em = lookup_extent_mapping(map_tree, start, 1); in check_chunk_block_group_mappings() 1655 read_unlock(&map_tree->lock); in check_chunk_block_group_mappings()
|
D | scrub.c | 3426 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in scrub_chunk() local 3432 read_lock(&map_tree->lock); in scrub_chunk() 3433 em = lookup_extent_mapping(map_tree, chunk_offset, 1); in scrub_chunk() 3434 read_unlock(&map_tree->lock); in scrub_chunk()
|
D | inode.c | 5318 struct extent_map_tree *map_tree = &BTRFS_I(inode)->extent_tree; in evict_inode_truncate_pages() local 5324 write_lock(&map_tree->lock); in evict_inode_truncate_pages() 5325 while (!RB_EMPTY_ROOT(&map_tree->map.rb_root)) { in evict_inode_truncate_pages() 5328 node = rb_first_cached(&map_tree->map); in evict_inode_truncate_pages() 5332 remove_extent_mapping(map_tree, em); in evict_inode_truncate_pages() 5335 write_unlock(&map_tree->lock); in evict_inode_truncate_pages() 5337 write_lock(&map_tree->lock); in evict_inode_truncate_pages() 5340 write_unlock(&map_tree->lock); in evict_inode_truncate_pages()
|