Home
last modified time | relevance | path

Searched refs:map_tree (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/fs/btrfs/
Dvolumes.c6587 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in read_one_chunk() local
6612 read_lock(&map_tree->lock); in read_one_chunk()
6613 em = lookup_extent_mapping(map_tree, logical, 1); in read_one_chunk()
6614 read_unlock(&map_tree->lock); in read_one_chunk()
6683 write_lock(&map_tree->lock); in read_one_chunk()
6684 ret = add_extent_mapping(map_tree, em, 0); in read_one_chunk()
6685 write_unlock(&map_tree->lock); in read_one_chunk()
7003 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in btrfs_check_rw_degradable() local
7008 read_lock(&map_tree->lock); in btrfs_check_rw_degradable()
7009 em = lookup_extent_mapping(map_tree, 0, (u64)-1); in btrfs_check_rw_degradable()
[all …]
Dblock-group.c1822 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in check_chunk_block_group_mappings() local
1829 read_lock(&map_tree->lock); in check_chunk_block_group_mappings()
1835 em = lookup_extent_mapping(map_tree, start, 1); in check_chunk_block_group_mappings()
1836 read_unlock(&map_tree->lock); in check_chunk_block_group_mappings()
Dscrub.c3371 struct extent_map_tree *map_tree = &fs_info->mapping_tree; in scrub_chunk() local
3377 read_lock(&map_tree->lock); in scrub_chunk()
3378 em = lookup_extent_mapping(map_tree, chunk_offset, 1); in scrub_chunk()
3379 read_unlock(&map_tree->lock); in scrub_chunk()
Dinode.c4973 struct extent_map_tree *map_tree = &BTRFS_I(inode)->extent_tree; in evict_inode_truncate_pages() local
4979 write_lock(&map_tree->lock); in evict_inode_truncate_pages()
4980 while (!RB_EMPTY_ROOT(&map_tree->map.rb_root)) { in evict_inode_truncate_pages()
4983 node = rb_first_cached(&map_tree->map); in evict_inode_truncate_pages()
4987 remove_extent_mapping(map_tree, em); in evict_inode_truncate_pages()
4990 write_unlock(&map_tree->lock); in evict_inode_truncate_pages()
4992 write_lock(&map_tree->lock); in evict_inode_truncate_pages()
4995 write_unlock(&map_tree->lock); in evict_inode_truncate_pages()