Lines Matching refs:em
553 struct extent_map *em; in add_ra_bio_pages() local
618 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
622 if (!em || last_offset < em->start || in add_ra_bio_pages()
623 (last_offset + PAGE_SIZE > extent_map_end(em)) || in add_ra_bio_pages()
624 (em->block_start >> 9) != cb->orig_bio->bi_iter.bi_sector) { in add_ra_bio_pages()
625 free_extent_map(em); in add_ra_bio_pages()
631 free_extent_map(em); in add_ra_bio_pages()
687 struct extent_map *em; in btrfs_submit_compressed_read() local
699 em = lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read()
701 if (!em) in btrfs_submit_compressed_read()
704 ASSERT(em->compress_type != BTRFS_COMPRESS_NONE); in btrfs_submit_compressed_read()
705 compressed_len = em->block_len; in btrfs_submit_compressed_read()
716 cb->start = em->orig_start; in btrfs_submit_compressed_read()
717 em_len = em->len; in btrfs_submit_compressed_read()
718 em_start = em->start; in btrfs_submit_compressed_read()
720 free_extent_map(em); in btrfs_submit_compressed_read()
721 em = NULL; in btrfs_submit_compressed_read()
842 free_extent_map(em); in btrfs_submit_compressed_read()