Lines Matching refs:em
9594 struct extent_map *em; in find_first_block_group() local
9598 em = lookup_extent_mapping(em_tree, found_key.objectid, in find_first_block_group()
9601 if (!em) { in find_first_block_group()
9606 } else if (em->start != found_key.objectid || in find_first_block_group()
9607 em->len != found_key.offset) { in find_first_block_group()
9611 em->start, em->len); in find_first_block_group()
9620 if (flags != (em->map_lookup->type & in find_first_block_group()
9627 em->map_lookup->type)); in find_first_block_group()
9633 free_extent_map(em); in find_first_block_group()
9891 struct extent_map *em; in check_chunk_block_group_mappings() local
9903 em = lookup_extent_mapping(&map_tree->map_tree, start, 1); in check_chunk_block_group_mappings()
9905 if (!em) in check_chunk_block_group_mappings()
9908 bg = btrfs_lookup_block_group(fs_info, em->start); in check_chunk_block_group_mappings()
9912 em->start, em->len); in check_chunk_block_group_mappings()
9914 free_extent_map(em); in check_chunk_block_group_mappings()
9917 if (bg->key.objectid != em->start || in check_chunk_block_group_mappings()
9918 bg->key.offset != em->len || in check_chunk_block_group_mappings()
9920 (em->map_lookup->type & BTRFS_BLOCK_GROUP_TYPE_MASK)) { in check_chunk_block_group_mappings()
9923 em->start, em->len, in check_chunk_block_group_mappings()
9924 em->map_lookup->type & BTRFS_BLOCK_GROUP_TYPE_MASK, in check_chunk_block_group_mappings()
9928 free_extent_map(em); in check_chunk_block_group_mappings()
9932 start = em->start + em->len; in check_chunk_block_group_mappings()
9933 free_extent_map(em); in check_chunk_block_group_mappings()
10244 u64 group_start, struct extent_map *em) in btrfs_remove_block_group() argument
10452 if (!list_empty(&em->list)) { in btrfs_remove_block_group()
10454 free_extent_map(em); in btrfs_remove_block_group()
10499 list_move_tail(&em->list, &fs_info->pinned_chunks); in btrfs_remove_block_group()
10529 remove_extent_mapping(em_tree, em); in btrfs_remove_block_group()
10532 free_extent_map(em); in btrfs_remove_block_group()
10547 struct extent_map *em; in btrfs_start_trans_remove_block_group() local
10552 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in btrfs_start_trans_remove_block_group()
10554 ASSERT(em && em->start == chunk_offset); in btrfs_start_trans_remove_block_group()
10575 map = em->map_lookup; in btrfs_start_trans_remove_block_group()
10577 free_extent_map(em); in btrfs_start_trans_remove_block_group()