Lines Matching refs:map
2914 * The new extent is pinned in the extent map, and we don't want
3222 * we don't mess with the extent map tree in the NOCOW case, but
7268 * than one extent map, if at this point has already
7269 * created an ordered extent for a previous extent map
7271 * concurrent write against that previous extent map's
7353 static int btrfs_get_blocks_direct_write(struct extent_map **map,
7361 struct extent_map *em = *map;
7406 /* Our caller expects us to free the input extent map. */
7408 *map = NULL;
7423 *map = em2;
7434 /* Our caller expects us to free the input extent map. */
7436 *map = NULL;
7467 *map = em;
7709 * Translate extent map information to iomap.
8679 * map.
10693 struct btrfs_chunk_map *map = NULL;
10833 map = btrfs_get_chunk_map(fs_info, logical_block_start, len);
10834 if (IS_ERR(map)) {
10835 ret = PTR_ERR(map);
10839 if (map->type & BTRFS_BLOCK_GROUP_PROFILE_MASK) {
10847 device = map->stripes[0].dev;
10853 } else if (device != map->stripes[0].dev) {
10859 physical_block_start = (map->stripes[0].physical +
10860 (logical_block_start - map->start));
10861 len = min(len, map->chunk_len - (logical_block_start - map->start));
10862 btrfs_free_chunk_map(map);
10863 map = NULL;
10916 if (!IS_ERR_OR_NULL(map))
10917 btrfs_free_chunk_map(map);