Lines Matching refs:logical
1282 u64 logical = cache->start; in btrfs_load_block_group_zone_info() local
1301 logical, length, fs_info->zone_size); in btrfs_load_block_group_zone_info()
1307 em = lookup_extent_mapping(em_tree, logical, length); in btrfs_load_block_group_zone_info()
1545 logical, last_alloc, cache->alloc_offset); in btrfs_load_block_group_zone_info()
1686 u64 *logical = NULL; in btrfs_rewrite_logical_zoned() local
1695 ordered->physical, &logical, &nr, in btrfs_rewrite_logical_zoned()
1701 if (orig_logical == *logical) in btrfs_rewrite_logical_zoned()
1704 ordered->disk_bytenr = *logical; in btrfs_rewrite_logical_zoned()
1710 em->block_start = *logical; in btrfs_rewrite_logical_zoned()
1715 if (*logical < orig_logical) in btrfs_rewrite_logical_zoned()
1716 sum->bytenr -= orig_logical - *logical; in btrfs_rewrite_logical_zoned()
1718 sum->bytenr += *logical - orig_logical; in btrfs_rewrite_logical_zoned()
1722 kfree(logical); in btrfs_rewrite_logical_zoned()
1771 static int read_zone_info(struct btrfs_fs_info *fs_info, u64 logical, in read_zone_info() argument
1780 ret = btrfs_map_sblock(fs_info, BTRFS_MAP_GET_READ_MIRRORS, logical, in read_zone_info()
1819 int btrfs_sync_zone_write_pointer(struct btrfs_device *tgt_dev, u64 logical, in btrfs_sync_zone_write_pointer() argument
1831 ret = read_zone_info(fs_info, logical, &zone); in btrfs_sync_zone_write_pointer()
1848 u64 logical, u64 length) in btrfs_zoned_get_device() argument
1854 em = btrfs_get_chunk_map(fs_info, logical, length); in btrfs_zoned_get_device()
2116 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical, u64 length) in btrfs_zone_finish_endio() argument
2124 block_group = btrfs_lookup_block_group(fs_info, logical); in btrfs_zone_finish_endio()
2134 if (logical + length + min_alloc_bytes <= in btrfs_zone_finish_endio()
2230 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, in btrfs_zoned_release_data_reloc_bg() argument
2238 block_group = btrfs_lookup_block_group(fs_info, logical); in btrfs_zoned_release_data_reloc_bg()
2247 if (block_group->start + block_group->alloc_offset == logical + length) { in btrfs_zoned_release_data_reloc_bg()