• Home
  • Raw
  • Download

Lines Matching refs:em_tree

650 	struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;  in submit_compressed_extents()  local
773 write_lock(&em_tree->lock); in submit_compressed_extents()
774 ret = add_extent_mapping(em_tree, em, 1); in submit_compressed_extents()
775 write_unlock(&em_tree->lock); in submit_compressed_extents()
843 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in get_extent_allocation_hint() local
847 read_lock(&em_tree->lock); in get_extent_allocation_hint()
848 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
857 em = search_extent_mapping(em_tree, 0, 0); in get_extent_allocation_hint()
867 read_unlock(&em_tree->lock); in get_extent_allocation_hint()
900 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in cow_file_range() local
975 write_lock(&em_tree->lock); in cow_file_range()
976 ret = add_extent_mapping(em_tree, em, 1); in cow_file_range()
977 write_unlock(&em_tree->lock); in cow_file_range()
1379 struct extent_map_tree *em_tree; in run_delalloc_nocow() local
1380 em_tree = &BTRFS_I(inode)->extent_tree; in run_delalloc_nocow()
1397 write_lock(&em_tree->lock); in run_delalloc_nocow()
1398 ret = add_extent_mapping(em_tree, em, 1); in run_delalloc_nocow()
1399 write_unlock(&em_tree->lock); in run_delalloc_nocow()
4490 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_cont_expand() local
4565 write_lock(&em_tree->lock); in btrfs_cont_expand()
4566 err = add_extent_mapping(em_tree, hole_em, 1); in btrfs_cont_expand()
4567 write_unlock(&em_tree->lock); in btrfs_cont_expand()
6264 static int merge_extent_mapping(struct extent_map_tree *em_tree, in merge_extent_mapping() argument
6297 return add_extent_mapping(em_tree, em, 0); in merge_extent_mapping()
6371 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_get_extent() local
6377 read_lock(&em_tree->lock); in btrfs_get_extent()
6378 em = lookup_extent_mapping(em_tree, start, len); in btrfs_get_extent()
6381 read_unlock(&em_tree->lock); in btrfs_get_extent()
6571 write_lock(&em_tree->lock); in btrfs_get_extent()
6572 ret = add_extent_mapping(em_tree, em, 0); in btrfs_get_extent()
6582 existing = search_extent_mapping(em_tree, start, len); in btrfs_get_extent()
6593 err = merge_extent_mapping(em_tree, existing, in btrfs_get_extent()
6606 write_unlock(&em_tree->lock); in btrfs_get_extent()
7067 struct extent_map_tree *em_tree; in create_pinned_em() local
7072 em_tree = &BTRFS_I(inode)->extent_tree; in create_pinned_em()
7095 write_lock(&em_tree->lock); in create_pinned_em()
7096 ret = add_extent_mapping(em_tree, em, 1); in create_pinned_em()
7097 write_unlock(&em_tree->lock); in create_pinned_em()
9274 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in __btrfs_prealloc_file_range() local
9340 write_lock(&em_tree->lock); in __btrfs_prealloc_file_range()
9341 ret = add_extent_mapping(em_tree, em, 1); in __btrfs_prealloc_file_range()
9342 write_unlock(&em_tree->lock); in __btrfs_prealloc_file_range()