• Home
  • Raw
  • Download

Lines Matching refs:stripes

3044 		struct btrfs_device *device = map->stripes[i].dev;  in btrfs_remove_chunk()
3046 map->stripes[i].physical, in btrfs_remove_chunk()
5172 map->stripes[s].dev = devices_info[i].dev; in create_chunk()
5173 map->stripes[s].physical = devices_info[i].dev_offset + in create_chunk()
5213 struct btrfs_device *dev = map->stripes[i].dev; in create_chunk()
5343 device = map->stripes[i].dev; in btrfs_finish_chunk_alloc()
5344 dev_offset = map->stripes[i].physical; in btrfs_finish_chunk_alloc()
5361 device = map->stripes[i].dev; in btrfs_finish_chunk_alloc()
5362 dev_offset = map->stripes[i].physical; in btrfs_finish_chunk_alloc()
5438 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5443 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5593 if (map->stripes[preferred_mirror].dev->bdev && in find_live_mirror()
5594 (tolerance || map->stripes[preferred_mirror].dev != srcdev)) in find_live_mirror()
5597 if (map->stripes[i].dev->bdev && in find_live_mirror()
5598 (tolerance || map->stripes[i].dev != srcdev)) in find_live_mirror()
5620 swap(bbio->stripes[i], bbio->stripes[i + 1]); in sort_parity_stripes()
5647 bbio->tgtdev_map = (int *)(bbio->stripes + total_stripes); in alloc_btrfs_bio()
5768 bbio->stripes[i].physical = in __btrfs_map_block_for_discard()
5769 map->stripes[stripe_index].physical + in __btrfs_map_block_for_discard()
5771 bbio->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block_for_discard()
5775 bbio->stripes[i].length = stripes_per_dev * in __btrfs_map_block_for_discard()
5779 bbio->stripes[i].length += in __btrfs_map_block_for_discard()
5791 bbio->stripes[i].length -= in __btrfs_map_block_for_discard()
5797 bbio->stripes[i].length -= in __btrfs_map_block_for_discard()
5803 bbio->stripes[i].length = length; in __btrfs_map_block_for_discard()
5871 if (bbio->stripes[i].dev->devid != srcdev_devid) in get_extra_mirror_from_replace()
5879 physical_of_found <= bbio->stripes[i].physical) in get_extra_mirror_from_replace()
5884 physical_of_found = bbio->stripes[i].physical; in get_extra_mirror_from_replace()
5926 if (bbio->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
5929 bbio->stripes + index_where_to_add; in handle_ops_on_dev_replace()
5931 bbio->stripes + i; in handle_ops_on_dev_replace()
5956 if (bbio->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
5964 bbio->stripes[i].physical) in handle_ops_on_dev_replace()
5968 physical_of_found = bbio->stripes[i].physical; in handle_ops_on_dev_replace()
5973 bbio->stripes + num_stripes; in handle_ops_on_dev_replace()
5977 bbio->stripes[index_srcdev].length; in handle_ops_on_dev_replace()
6274 bbio->stripes[i].physical = map->stripes[stripe_index].physical + in __btrfs_map_block()
6276 bbio->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block()
6325 bbio->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()
6326 bbio->stripes[0].physical = physical_to_patch_in_first_stripe; in __btrfs_map_block()
6516 dev = bbio->stripes[dev_nr].dev; in btrfs_map_bio()
6530 submit_stripe_bio(bbio, bio, bbio->stripes[dev_nr].physical, dev); in btrfs_map_bio()
6747 map->stripes[i].physical = in read_one_chunk()
6753 map->stripes[i].dev = btrfs_find_device(fs_info->fs_devices, in read_one_chunk()
6755 if (!map->stripes[i].dev && in read_one_chunk()
6761 if (!map->stripes[i].dev) { in read_one_chunk()
6762 map->stripes[i].dev = in read_one_chunk()
6765 if (IS_ERR(map->stripes[i].dev)) { in read_one_chunk()
6769 devid, PTR_ERR(map->stripes[i].dev)); in read_one_chunk()
6770 return PTR_ERR(map->stripes[i].dev); in read_one_chunk()
6775 &(map->stripes[i].dev->dev_state)); in read_one_chunk()
7123 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
7660 if (map->stripes[i].dev->devid == devid && in verify_one_dev_extent()
7661 map->stripes[i].physical == physical_offset) { in verify_one_dev_extent()