Lines Matching refs:em
3331 struct extent_map *em; in scrub_chunk() local
3336 em = lookup_extent_mapping(&map_tree->map_tree, chunk_offset, 1); in scrub_chunk()
3339 if (!em) in scrub_chunk()
3342 map = (struct map_lookup *)em->bdev; in scrub_chunk()
3343 if (em->start != chunk_offset) in scrub_chunk()
3346 if (em->len < length) in scrub_chunk()
3360 free_extent_map(em); in scrub_chunk()
4030 struct extent_map *em; in check_extent_to_block() local
4044 em = btrfs_get_extent(inode, NULL, 0, start, len, 0); in check_extent_to_block()
4045 if (IS_ERR(em)) { in check_extent_to_block()
4046 ret = PTR_ERR(em); in check_extent_to_block()
4054 if (em->block_start > logical || in check_extent_to_block()
4055 em->block_start + em->block_len < logical + len) { in check_extent_to_block()
4056 free_extent_map(em); in check_extent_to_block()
4060 free_extent_map(em); in check_extent_to_block()