Lines Matching refs:stripes
3100 ret = btrfs_update_device(trans, map->stripes[i].dev); in remove_chunk_item()
3141 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
3143 map->stripes[i].physical, in btrfs_remove_chunk()
5419 map->stripes[s].dev = devices_info[i].dev; in create_chunk()
5420 map->stripes[s].physical = devices_info[i].dev_offset + in create_chunk()
5460 struct btrfs_device *dev = map->stripes[i].dev; in create_chunk()
5613 struct btrfs_device *device = map->stripes[i].dev; in btrfs_chunk_alloc_add_chunk_item()
5622 struct btrfs_device *device = map->stripes[i].dev; in btrfs_chunk_alloc_add_chunk_item()
5623 const u64 dev_offset = map->stripes[i].physical; in btrfs_chunk_alloc_add_chunk_item()
5726 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5731 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5892 if (map->stripes[preferred_mirror].dev->bdev && in find_live_mirror()
5893 (tolerance || map->stripes[preferred_mirror].dev != srcdev)) in find_live_mirror()
5896 if (map->stripes[i].dev->bdev && in find_live_mirror()
5897 (tolerance || map->stripes[i].dev != srcdev)) in find_live_mirror()
5919 swap(bioc->stripes[i], bioc->stripes[i + 1]); in sort_parity_stripes()
5947 bioc->tgtdev_map = (int *)(bioc->stripes + total_stripes); in alloc_btrfs_io_context()
6068 bioc->stripes[i].physical = in __btrfs_map_block_for_discard()
6069 map->stripes[stripe_index].physical + in __btrfs_map_block_for_discard()
6071 bioc->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block_for_discard()
6075 bioc->stripes[i].length = stripes_per_dev * in __btrfs_map_block_for_discard()
6079 bioc->stripes[i].length += map->stripe_len; in __btrfs_map_block_for_discard()
6090 bioc->stripes[i].length -= stripe_offset; in __btrfs_map_block_for_discard()
6095 bioc->stripes[i].length -= stripe_end_offset; in __btrfs_map_block_for_discard()
6100 bioc->stripes[i].length = length; in __btrfs_map_block_for_discard()
6168 if (bioc->stripes[i].dev->devid != srcdev_devid) in get_extra_mirror_from_replace()
6176 physical_of_found <= bioc->stripes[i].physical) in get_extra_mirror_from_replace()
6181 physical_of_found = bioc->stripes[i].physical; in get_extra_mirror_from_replace()
6250 if (bioc->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
6253 bioc->stripes + index_where_to_add; in handle_ops_on_dev_replace()
6255 bioc->stripes + i; in handle_ops_on_dev_replace()
6280 if (bioc->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
6287 physical_of_found <= bioc->stripes[i].physical) in handle_ops_on_dev_replace()
6291 physical_of_found = bioc->stripes[i].physical; in handle_ops_on_dev_replace()
6296 bioc->stripes + num_stripes; in handle_ops_on_dev_replace()
6300 bioc->stripes[index_srcdev].length; in handle_ops_on_dev_replace()
6590 bioc->stripes[i].physical = map->stripes[stripe_index].physical + in __btrfs_map_block()
6592 bioc->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block()
6641 bioc->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()
6642 bioc->stripes[0].physical = physical_to_patch_in_first_stripe; in __btrfs_map_block()
6846 dev = bioc->stripes[dev_nr].dev; in btrfs_map_bio()
6860 submit_stripe_bio(bioc, bio, bioc->stripes[dev_nr].physical, dev); in btrfs_map_bio()
7180 map->stripes[i].physical = in read_one_chunk()
7188 map->stripes[i].dev = btrfs_find_device(fs_info->fs_devices, &args); in read_one_chunk()
7189 if (!map->stripes[i].dev) { in read_one_chunk()
7190 map->stripes[i].dev = handle_missing_device(fs_info, in read_one_chunk()
7192 if (IS_ERR(map->stripes[i].dev)) { in read_one_chunk()
7193 ret = PTR_ERR(map->stripes[i].dev); in read_one_chunk()
7200 &(map->stripes[i].dev->dev_state)); in read_one_chunk()
7559 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
8120 if (map->stripes[i].dev->devid == devid && in verify_one_dev_extent()
8121 map->stripes[i].physical == physical_offset) { in verify_one_dev_extent()