Lines Matching refs:hole_em
5167 struct extent_map *hole_em; in btrfs_cont_expand() local
5176 hole_em = alloc_extent_map(); in btrfs_cont_expand()
5177 if (!hole_em) { in btrfs_cont_expand()
5182 hole_em->start = cur_offset; in btrfs_cont_expand()
5183 hole_em->len = hole_size; in btrfs_cont_expand()
5184 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5186 hole_em->block_start = EXTENT_MAP_HOLE; in btrfs_cont_expand()
5187 hole_em->block_len = 0; in btrfs_cont_expand()
5188 hole_em->orig_block_len = 0; in btrfs_cont_expand()
5189 hole_em->ram_bytes = hole_size; in btrfs_cont_expand()
5190 hole_em->bdev = fs_info->fs_devices->latest_bdev; in btrfs_cont_expand()
5191 hole_em->compress_type = BTRFS_COMPRESS_NONE; in btrfs_cont_expand()
5192 hole_em->generation = fs_info->generation; in btrfs_cont_expand()
5196 err = add_extent_mapping(em_tree, hole_em, 1); in btrfs_cont_expand()
5205 free_extent_map(hole_em); in btrfs_cont_expand()
7175 struct extent_map *hole_em = NULL; in btrfs_get_extent_fiemap() local
7195 hole_em = em; in btrfs_get_extent_fiemap()
7218 em = hole_em; in btrfs_get_extent_fiemap()
7219 hole_em = NULL; in btrfs_get_extent_fiemap()
7246 if (hole_em) { in btrfs_get_extent_fiemap()
7247 u64 calc_end = extent_map_end(hole_em); in btrfs_get_extent_fiemap()
7249 if (calc_end <= start || (hole_em->start > end)) { in btrfs_get_extent_fiemap()
7250 free_extent_map(hole_em); in btrfs_get_extent_fiemap()
7251 hole_em = NULL; in btrfs_get_extent_fiemap()
7253 hole_start = max(hole_em->start, start); in btrfs_get_extent_fiemap()
7258 if (hole_em && range_start > hole_start) { in btrfs_get_extent_fiemap()
7271 em->block_start = hole_em->block_start; in btrfs_get_extent_fiemap()
7273 if (test_bit(EXTENT_FLAG_PREALLOC, &hole_em->flags)) in btrfs_get_extent_fiemap()
7283 return hole_em; in btrfs_get_extent_fiemap()
7287 free_extent_map(hole_em); in btrfs_get_extent_fiemap()