Lines Matching refs:em_tree
1107 struct extent_map_tree *em_tree = &inode->extent_tree; in get_extent_allocation_hint() local
1111 read_lock(&em_tree->lock); in get_extent_allocation_hint()
1112 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
1121 em = search_extent_mapping(em_tree, 0, 0); in get_extent_allocation_hint()
1131 read_unlock(&em_tree->lock); in get_extent_allocation_hint()
2530 struct extent_map_tree *em_tree = &inode->extent_tree; in split_zoned_em() local
2555 write_lock(&em_tree->lock); in split_zoned_em()
2556 em = lookup_extent_mapping(em_tree, start, len); in split_zoned_em()
2584 replace_extent_mapping(em_tree, em, split_pre, 1); in split_zoned_em()
2604 add_extent_mapping(em_tree, split_mid, 1); in split_zoned_em()
2618 add_extent_mapping(em_tree, split_post, 1); in split_zoned_em()
2627 write_unlock(&em_tree->lock); in split_zoned_em()
6851 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_get_extent() local
6853 read_lock(&em_tree->lock); in btrfs_get_extent()
6854 em = lookup_extent_mapping(em_tree, start, len); in btrfs_get_extent()
6855 read_unlock(&em_tree->lock); in btrfs_get_extent()
7032 write_lock(&em_tree->lock); in btrfs_get_extent()
7033 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); in btrfs_get_extent()
7034 write_unlock(&em_tree->lock); in btrfs_get_extent()