Lines Matching refs:em
554 struct extent_map *em; in add_ra_bio_pages() local
619 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
623 if (!em || last_offset < em->start || in add_ra_bio_pages()
624 (last_offset + PAGE_SIZE > extent_map_end(em)) || in add_ra_bio_pages()
625 (em->block_start >> 9) != cb->orig_bio->bi_iter.bi_sector) { in add_ra_bio_pages()
626 free_extent_map(em); in add_ra_bio_pages()
632 free_extent_map(em); in add_ra_bio_pages()
689 struct extent_map *em; in btrfs_submit_compressed_read() local
701 em = lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read()
703 if (!em) in btrfs_submit_compressed_read()
706 ASSERT(em->compress_type != BTRFS_COMPRESS_NONE); in btrfs_submit_compressed_read()
707 compressed_len = em->block_len; in btrfs_submit_compressed_read()
718 cb->start = em->orig_start; in btrfs_submit_compressed_read()
719 em_len = em->len; in btrfs_submit_compressed_read()
720 em_start = em->start; in btrfs_submit_compressed_read()
722 free_extent_map(em); in btrfs_submit_compressed_read()
723 em = NULL; in btrfs_submit_compressed_read()
844 free_extent_map(em); in btrfs_submit_compressed_read()