em_tree 1113 fs/btrfs/block-group.c struct extent_map_tree *em_tree; em_tree 1115 fs/btrfs/block-group.c em_tree = &fs_info->mapping_tree; em_tree 1116 fs/btrfs/block-group.c write_lock(&em_tree->lock); em_tree 1117 fs/btrfs/block-group.c remove_extent_mapping(em_tree, em); em_tree 1118 fs/btrfs/block-group.c write_unlock(&em_tree->lock); em_tree 1136 fs/btrfs/block-group.c struct extent_map_tree *em_tree = &fs_info->mapping_tree; em_tree 1141 fs/btrfs/block-group.c read_lock(&em_tree->lock); em_tree 1142 fs/btrfs/block-group.c em = lookup_extent_mapping(em_tree, chunk_offset, 1); em_tree 1143 fs/btrfs/block-group.c read_unlock(&em_tree->lock); em_tree 1460 fs/btrfs/block-group.c struct extent_map_tree *em_tree; em_tree 1463 fs/btrfs/block-group.c em_tree = &root->fs_info->mapping_tree; em_tree 1464 fs/btrfs/block-group.c read_lock(&em_tree->lock); em_tree 1465 fs/btrfs/block-group.c em = lookup_extent_mapping(em_tree, found_key.objectid, em_tree 1467 fs/btrfs/block-group.c read_unlock(&em_tree->lock); em_tree 441 fs/btrfs/compression.c struct extent_map_tree *em_tree; em_tree 447 fs/btrfs/compression.c em_tree = &BTRFS_I(inode)->extent_tree; em_tree 487 fs/btrfs/compression.c read_lock(&em_tree->lock); em_tree 488 fs/btrfs/compression.c em = lookup_extent_mapping(em_tree, last_offset, em_tree 490 fs/btrfs/compression.c read_unlock(&em_tree->lock); em_tree 550 fs/btrfs/compression.c struct extent_map_tree *em_tree; em_tree 567 fs/btrfs/compression.c em_tree = &BTRFS_I(inode)->extent_tree; em_tree 570 fs/btrfs/compression.c read_lock(&em_tree->lock); em_tree 571 fs/btrfs/compression.c em = lookup_extent_mapping(em_tree, em_tree 574 fs/btrfs/compression.c read_unlock(&em_tree->lock); em_tree 727 fs/btrfs/dev-replace.c struct extent_map_tree *em_tree = &fs_info->mapping_tree; em_tree 733 fs/btrfs/dev-replace.c write_lock(&em_tree->lock); em_tree 735 fs/btrfs/dev-replace.c em = lookup_extent_mapping(em_tree, start, (u64)-1); em_tree 745 fs/btrfs/dev-replace.c write_unlock(&em_tree->lock); em_tree 209 fs/btrfs/disk-io.c struct extent_map_tree *em_tree = &inode->extent_tree; em_tree 213 fs/btrfs/disk-io.c read_lock(&em_tree->lock); em_tree 214 fs/btrfs/disk-io.c em = lookup_extent_mapping(em_tree, start, len); em_tree 217 fs/btrfs/disk-io.c read_unlock(&em_tree->lock); em_tree 220 fs/btrfs/disk-io.c read_unlock(&em_tree->lock); em_tree 233 fs/btrfs/disk-io.c write_lock(&em_tree->lock); em_tree 234 fs/btrfs/disk-io.c ret = add_extent_mapping(em_tree, em, 0); em_tree 237 fs/btrfs/disk-io.c em = lookup_extent_mapping(em_tree, start, len); em_tree 244 fs/btrfs/disk-io.c write_unlock(&em_tree->lock); em_tree 2385 fs/btrfs/extent_io.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 2401 fs/btrfs/extent_io.c read_lock(&em_tree->lock); em_tree 2402 fs/btrfs/extent_io.c em = lookup_extent_mapping(em_tree, start, failrec->len); em_tree 2404 fs/btrfs/extent_io.c read_unlock(&em_tree->lock); em_tree 2413 fs/btrfs/extent_io.c read_unlock(&em_tree->lock); em_tree 536 fs/btrfs/extent_map.c static noinline int merge_extent_mapping(struct extent_map_tree *em_tree, em_tree 569 fs/btrfs/extent_map.c return add_extent_mapping(em_tree, em, 0); em_tree 593 fs/btrfs/extent_map.c struct extent_map_tree *em_tree, em_tree 599 fs/btrfs/extent_map.c ret = add_extent_mapping(em_tree, em, 0); em_tree 609 fs/btrfs/extent_map.c existing = search_extent_mapping(em_tree, start, len); em_tree 630 fs/btrfs/extent_map.c ret = merge_extent_mapping(em_tree, existing, em_tree 104 fs/btrfs/extent_map.h struct extent_map_tree *em_tree, em_tree 593 fs/btrfs/file.c struct extent_map_tree *em_tree = &inode->extent_tree; em_tree 618 fs/btrfs/file.c write_lock(&em_tree->lock); em_tree 619 fs/btrfs/file.c em = lookup_extent_mapping(em_tree, start, len); em_tree 621 fs/btrfs/file.c write_unlock(&em_tree->lock); em_tree 629 fs/btrfs/file.c write_unlock(&em_tree->lock); em_tree 636 fs/btrfs/file.c write_unlock(&em_tree->lock); em_tree 673 fs/btrfs/file.c replace_extent_mapping(em_tree, em, split, modified); em_tree 712 fs/btrfs/file.c replace_extent_mapping(em_tree, em, split, em_tree 715 fs/btrfs/file.c ret = add_extent_mapping(em_tree, split, em_tree 724 fs/btrfs/file.c remove_extent_mapping(em_tree, em); em_tree 725 fs/btrfs/file.c write_unlock(&em_tree->lock); em_tree 2298 fs/btrfs/file.c struct extent_map_tree *em_tree = &inode->extent_tree; em_tree 2380 fs/btrfs/file.c write_lock(&em_tree->lock); em_tree 2381 fs/btrfs/file.c ret = add_extent_mapping(em_tree, hole_em, 1); em_tree 2382 fs/btrfs/file.c write_unlock(&em_tree->lock); em_tree 3369 fs/btrfs/free-space-cache.c struct extent_map_tree *em_tree; em_tree 3380 fs/btrfs/free-space-cache.c em_tree = &fs_info->mapping_tree; em_tree 3381 fs/btrfs/free-space-cache.c write_lock(&em_tree->lock); em_tree 3382 fs/btrfs/free-space-cache.c em = lookup_extent_mapping(em_tree, block_group->key.objectid, em_tree 3385 fs/btrfs/free-space-cache.c remove_extent_mapping(em_tree, em); em_tree 3386 fs/btrfs/free-space-cache.c write_unlock(&em_tree->lock); em_tree 924 fs/btrfs/inode.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 928 fs/btrfs/inode.c read_lock(&em_tree->lock); em_tree 929 fs/btrfs/inode.c em = search_extent_mapping(em_tree, start, num_bytes); em_tree 938 fs/btrfs/inode.c em = search_extent_mapping(em_tree, 0, 0); em_tree 948 fs/btrfs/inode.c read_unlock(&em_tree->lock); em_tree 5208 fs/btrfs/inode.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 5270 fs/btrfs/inode.c write_lock(&em_tree->lock); em_tree 5271 fs/btrfs/inode.c err = add_extent_mapping(em_tree, hole_em, 1); em_tree 5272 fs/btrfs/inode.c write_unlock(&em_tree->lock); em_tree 7035 fs/btrfs/inode.c struct extent_map_tree *em_tree = &inode->extent_tree; em_tree 7039 fs/btrfs/inode.c read_lock(&em_tree->lock); em_tree 7040 fs/btrfs/inode.c em = lookup_extent_mapping(em_tree, start, len); em_tree 7043 fs/btrfs/inode.c read_unlock(&em_tree->lock); em_tree 7232 fs/btrfs/inode.c write_lock(&em_tree->lock); em_tree 7233 fs/btrfs/inode.c err = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); em_tree 7234 fs/btrfs/inode.c write_unlock(&em_tree->lock); em_tree 7675 fs/btrfs/inode.c struct extent_map_tree *em_tree; em_tree 7685 fs/btrfs/inode.c em_tree = &BTRFS_I(inode)->extent_tree; em_tree 7710 fs/btrfs/inode.c write_lock(&em_tree->lock); em_tree 7711 fs/btrfs/inode.c ret = add_extent_mapping(em_tree, em, 1); em_tree 7712 fs/btrfs/inode.c write_unlock(&em_tree->lock); em_tree 10474 fs/btrfs/inode.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 10562 fs/btrfs/inode.c write_lock(&em_tree->lock); em_tree 10563 fs/btrfs/inode.c ret = add_extent_mapping(em_tree, em, 1); em_tree 10564 fs/btrfs/inode.c write_unlock(&em_tree->lock); em_tree 1022 fs/btrfs/ioctl.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 1025 fs/btrfs/ioctl.c read_lock(&em_tree->lock); em_tree 1026 fs/btrfs/ioctl.c em = lookup_extent_mapping(em_tree, offset, PAGE_SIZE); em_tree 1027 fs/btrfs/ioctl.c read_unlock(&em_tree->lock); em_tree 1113 fs/btrfs/ioctl.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 1122 fs/btrfs/ioctl.c read_lock(&em_tree->lock); em_tree 1123 fs/btrfs/ioctl.c em = lookup_extent_mapping(em_tree, start, len); em_tree 1124 fs/btrfs/ioctl.c read_unlock(&em_tree->lock); em_tree 3255 fs/btrfs/relocation.c struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; em_tree 3272 fs/btrfs/relocation.c write_lock(&em_tree->lock); em_tree 3273 fs/btrfs/relocation.c ret = add_extent_mapping(em_tree, em, 0); em_tree 3274 fs/btrfs/relocation.c write_unlock(&em_tree->lock); em_tree 10 fs/btrfs/tests/extent-map-tests.c static void free_extent_map_tree(struct extent_map_tree *em_tree) em_tree 15 fs/btrfs/tests/extent-map-tests.c while (!RB_EMPTY_ROOT(&em_tree->map.rb_root)) { em_tree 16 fs/btrfs/tests/extent-map-tests.c node = rb_first_cached(&em_tree->map); em_tree 18 fs/btrfs/tests/extent-map-tests.c remove_extent_mapping(em_tree, em); em_tree 51 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree) em_tree 69 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 70 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 71 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 90 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 91 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 92 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 111 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 112 fs/btrfs/tests/extent-map-tests.c ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); em_tree 113 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 129 fs/btrfs/tests/extent-map-tests.c free_extent_map_tree(em_tree); em_tree 141 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree) em_tree 157 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 158 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 159 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 178 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 179 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 180 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 199 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 200 fs/btrfs/tests/extent-map-tests.c ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); em_tree 201 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 217 fs/btrfs/tests/extent-map-tests.c free_extent_map_tree(em_tree); em_tree 223 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree, u64 start) em_tree 240 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 241 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 242 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 261 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 262 fs/btrfs/tests/extent-map-tests.c ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); em_tree 263 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 284 fs/btrfs/tests/extent-map-tests.c free_extent_map_tree(em_tree); em_tree 306 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree) em_tree 310 fs/btrfs/tests/extent-map-tests.c ret = __test_case_3(fs_info, em_tree, 0); em_tree 313 fs/btrfs/tests/extent-map-tests.c ret = __test_case_3(fs_info, em_tree, SZ_8K); em_tree 316 fs/btrfs/tests/extent-map-tests.c ret = __test_case_3(fs_info, em_tree, (12 * SZ_1K)); em_tree 322 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree, u64 start) em_tree 339 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 340 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 341 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 360 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 361 fs/btrfs/tests/extent-map-tests.c ret = add_extent_mapping(em_tree, em, 0); em_tree 362 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 380 fs/btrfs/tests/extent-map-tests.c write_lock(&em_tree->lock); em_tree 381 fs/btrfs/tests/extent-map-tests.c ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); em_tree 382 fs/btrfs/tests/extent-map-tests.c write_unlock(&em_tree->lock); em_tree 397 fs/btrfs/tests/extent-map-tests.c free_extent_map_tree(em_tree); em_tree 428 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree) em_tree 432 fs/btrfs/tests/extent-map-tests.c ret = __test_case_4(fs_info, em_tree, 0); em_tree 435 fs/btrfs/tests/extent-map-tests.c ret = __test_case_4(fs_info, em_tree, SZ_4K); em_tree 443 fs/btrfs/tests/extent-map-tests.c struct extent_map_tree *em_tree; em_tree 458 fs/btrfs/tests/extent-map-tests.c em_tree = kzalloc(sizeof(*em_tree), GFP_KERNEL); em_tree 459 fs/btrfs/tests/extent-map-tests.c if (!em_tree) { em_tree 464 fs/btrfs/tests/extent-map-tests.c extent_map_tree_init(em_tree); em_tree 466 fs/btrfs/tests/extent-map-tests.c ret = test_case_1(fs_info, em_tree); em_tree 469 fs/btrfs/tests/extent-map-tests.c ret = test_case_2(fs_info, em_tree); em_tree 472 fs/btrfs/tests/extent-map-tests.c ret = test_case_3(fs_info, em_tree); em_tree 475 fs/btrfs/tests/extent-map-tests.c ret = test_case_4(fs_info, em_tree); em_tree 478 fs/btrfs/tests/extent-map-tests.c kfree(em_tree); em_tree 5044 fs/btrfs/tree-log.c struct extent_map_tree *em_tree = &inode->extent_tree; em_tree 5342 fs/btrfs/tree-log.c write_lock(&em_tree->lock); em_tree 5361 fs/btrfs/tree-log.c list_for_each_entry_safe(em, n, &em_tree->modified_extents, em_tree 5368 fs/btrfs/tree-log.c write_unlock(&em_tree->lock); em_tree 1864 fs/btrfs/volumes.c struct extent_map_tree *em_tree; em_tree 1869 fs/btrfs/volumes.c em_tree = &fs_info->mapping_tree; em_tree 1870 fs/btrfs/volumes.c read_lock(&em_tree->lock); em_tree 1871 fs/btrfs/volumes.c n = rb_last(&em_tree->map.rb_root); em_tree 1876 fs/btrfs/volumes.c read_unlock(&em_tree->lock); em_tree 2986 fs/btrfs/volumes.c struct extent_map_tree *em_tree; em_tree 2989 fs/btrfs/volumes.c em_tree = &fs_info->mapping_tree; em_tree 2990 fs/btrfs/volumes.c read_lock(&em_tree->lock); em_tree 2991 fs/btrfs/volumes.c em = lookup_extent_mapping(em_tree, logical, length); em_tree 2992 fs/btrfs/volumes.c read_unlock(&em_tree->lock); em_tree 4961 fs/btrfs/volumes.c struct extent_map_tree *em_tree; em_tree 5190 fs/btrfs/volumes.c em_tree = &info->mapping_tree; em_tree 5191 fs/btrfs/volumes.c write_lock(&em_tree->lock); em_tree 5192 fs/btrfs/volumes.c ret = add_extent_mapping(em_tree, em, 0); em_tree 5194 fs/btrfs/volumes.c write_unlock(&em_tree->lock); em_tree 5198 fs/btrfs/volumes.c write_unlock(&em_tree->lock); em_tree 5222 fs/btrfs/volumes.c write_lock(&em_tree->lock); em_tree 5223 fs/btrfs/volumes.c remove_extent_mapping(em_tree, em); em_tree 5224 fs/btrfs/volumes.c write_unlock(&em_tree->lock); em_tree 7705 fs/btrfs/volumes.c struct extent_map_tree *em_tree = &fs_info->mapping_tree; em_tree 7714 fs/btrfs/volumes.c read_lock(&em_tree->lock); em_tree 7715 fs/btrfs/volumes.c em = lookup_extent_mapping(em_tree, chunk_offset, 1); em_tree 7716 fs/btrfs/volumes.c read_unlock(&em_tree->lock); em_tree 7794 fs/btrfs/volumes.c struct extent_map_tree *em_tree = &fs_info->mapping_tree; em_tree 7799 fs/btrfs/volumes.c read_lock(&em_tree->lock); em_tree 7800 fs/btrfs/volumes.c for (node = rb_first_cached(&em_tree->map); node; node = rb_next(node)) { em_tree 7813 fs/btrfs/volumes.c read_unlock(&em_tree->lock);