Lines Matching refs:em
3442 struct extent_map *em; in scrub_chunk() local
3447 em = lookup_extent_mapping(&map_tree->map_tree, chunk_offset, 1); in scrub_chunk()
3450 if (!em) { in scrub_chunk()
3463 map = (struct map_lookup *)em->bdev; in scrub_chunk()
3464 if (em->start != chunk_offset) in scrub_chunk()
3467 if (em->len < length) in scrub_chunk()
3481 free_extent_map(em); in scrub_chunk()
4208 struct extent_map *em; in check_extent_to_block() local
4222 em = btrfs_get_extent(inode, NULL, 0, start, len, 0); in check_extent_to_block()
4223 if (IS_ERR(em)) { in check_extent_to_block()
4224 ret = PTR_ERR(em); in check_extent_to_block()
4232 if (em->block_start > logical || in check_extent_to_block()
4233 em->block_start + em->block_len < logical + len) { in check_extent_to_block()
4234 free_extent_map(em); in check_extent_to_block()
4238 free_extent_map(em); in check_extent_to_block()