Lines Matching refs:em_tree
552 static noinline int merge_extent_mapping(struct extent_map_tree *em_tree, in merge_extent_mapping() argument
585 return add_extent_mapping(em_tree, em, 0); in merge_extent_mapping()
610 struct extent_map_tree *em_tree, in btrfs_add_extent_mapping() argument
616 ret = add_extent_mapping(em_tree, em, 0); in btrfs_add_extent_mapping()
626 existing = search_extent_mapping(em_tree, start, len); in btrfs_add_extent_mapping()
647 ret = merge_extent_mapping(em_tree, existing, in btrfs_add_extent_mapping()
708 struct extent_map_tree *em_tree = &inode->extent_tree; in btrfs_drop_extent_map_range() local
714 drop_all_extent_maps_fast(em_tree); in btrfs_drop_extent_map_range()
734 write_lock(&em_tree->lock); in btrfs_drop_extent_map_range()
735 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_map_range()
810 replace_extent_mapping(em_tree, em, split, modified); in btrfs_drop_extent_map_range()
852 replace_extent_mapping(em_tree, em, split, in btrfs_drop_extent_map_range()
857 ret = add_extent_mapping(em_tree, split, in btrfs_drop_extent_map_range()
893 remove_extent_mapping(em_tree, em); in btrfs_drop_extent_map_range()
908 write_unlock(&em_tree->lock); in btrfs_drop_extent_map_range()