Lines Matching refs:stripes

1310 			if (map->stripes[i].dev != device)  in contains_pending_extent()
1312 if (map->stripes[i].physical >= physical_start + len || in contains_pending_extent()
1313 map->stripes[i].physical + em->orig_block_len <= in contains_pending_extent()
1328 end = map->stripes[i].physical + em->orig_block_len; in contains_pending_extent()
2806 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk()
2808 map->stripes[i].physical, in btrfs_remove_chunk()
2825 if (map->stripes[i].dev) { in btrfs_remove_chunk()
2826 ret = btrfs_update_device(trans, map->stripes[i].dev); in btrfs_remove_chunk()
4828 map->stripes[s].dev = devices_info[i].dev; in __btrfs_alloc_chunk()
4829 map->stripes[s].physical = devices_info[i].dev_offset + in __btrfs_alloc_chunk()
4875 num_bytes = map->stripes[i].dev->bytes_used + stripe_size; in __btrfs_alloc_chunk()
4876 btrfs_device_set_bytes_used(map->stripes[i].dev, num_bytes); in __btrfs_alloc_chunk()
4877 map->stripes[i].dev->has_pending_chunks = true; in __btrfs_alloc_chunk()
4945 device = map->stripes[i].dev; in btrfs_finish_chunk_alloc()
4946 dev_offset = map->stripes[i].physical; in btrfs_finish_chunk_alloc()
4963 device = map->stripes[i].dev; in btrfs_finish_chunk_alloc()
4964 dev_offset = map->stripes[i].physical; in btrfs_finish_chunk_alloc()
5070 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5075 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_readonly()
5230 if (map->stripes[preferred_mirror].dev->bdev && in find_live_mirror()
5231 (tolerance || map->stripes[preferred_mirror].dev != srcdev)) in find_live_mirror()
5234 if (map->stripes[i].dev->bdev && in find_live_mirror()
5235 (tolerance || map->stripes[i].dev != srcdev)) in find_live_mirror()
5264 s = bbio->stripes[i]; in sort_parity_stripes()
5266 bbio->stripes[i] = bbio->stripes[i+1]; in sort_parity_stripes()
5268 bbio->stripes[i+1] = s; in sort_parity_stripes()
5412 bbio->stripes[i].physical = in __btrfs_map_block_for_discard()
5413 map->stripes[stripe_index].physical + in __btrfs_map_block_for_discard()
5415 bbio->stripes[i].dev = map->stripes[stripe_index].dev; in __btrfs_map_block_for_discard()
5419 bbio->stripes[i].length = stripes_per_dev * in __btrfs_map_block_for_discard()
5423 bbio->stripes[i].length += in __btrfs_map_block_for_discard()
5435 bbio->stripes[i].length -= in __btrfs_map_block_for_discard()
5441 bbio->stripes[i].length -= in __btrfs_map_block_for_discard()
5447 bbio->stripes[i].length = length; in __btrfs_map_block_for_discard()
5515 if (bbio->stripes[i].dev->devid != srcdev_devid) in get_extra_mirror_from_replace()
5523 physical_of_found <= bbio->stripes[i].physical) in get_extra_mirror_from_replace()
5528 physical_of_found = bbio->stripes[i].physical; in get_extra_mirror_from_replace()
5570 if (bbio->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
5573 bbio->stripes + index_where_to_add; in handle_ops_on_dev_replace()
5575 bbio->stripes + i; in handle_ops_on_dev_replace()
5600 if (bbio->stripes[i].dev->devid == srcdev_devid) { in handle_ops_on_dev_replace()
5608 bbio->stripes[i].physical) in handle_ops_on_dev_replace()
5612 physical_of_found = bbio->stripes[i].physical; in handle_ops_on_dev_replace()
5617 bbio->stripes + num_stripes; in handle_ops_on_dev_replace()
5621 bbio->stripes[index_srcdev].length; in handle_ops_on_dev_replace()
5865 bbio->tgtdev_map = (int *)(bbio->stripes + num_alloc_stripes); in __btrfs_map_block()
5873 bbio->raid_map = (u64 *)((void *)bbio->stripes + in __btrfs_map_block()
5895 bbio->stripes[i].physical = in __btrfs_map_block()
5896 map->stripes[stripe_index].physical + in __btrfs_map_block()
5899 bbio->stripes[i].dev = in __btrfs_map_block()
5900 map->stripes[stripe_index].dev; in __btrfs_map_block()
5929 bbio->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()
5930 bbio->stripes[0].physical = physical_to_patch_in_first_stripe; in __btrfs_map_block()
5991 if (map->stripes[i].physical > physical || in btrfs_rmap_block()
5992 map->stripes[i].physical + length <= physical) in btrfs_rmap_block()
5995 stripe_nr = physical - map->stripes[i].physical; in btrfs_rmap_block()
6050 dev = bbio->stripes[stripe_index].dev; in btrfs_end_bio()
6143 struct btrfs_device *dev = bbio->stripes[dev_nr].dev; in submit_stripe_bio()
6237 dev = bbio->stripes[dev_nr].dev; in btrfs_map_bio()
6251 submit_stripe_bio(bbio, bio, bbio->stripes[dev_nr].physical, in btrfs_map_bio()
6448 map->stripes[i].physical = in read_one_chunk()
6454 map->stripes[i].dev = btrfs_find_device(fs_info->fs_devices, in read_one_chunk()
6456 if (!map->stripes[i].dev && in read_one_chunk()
6462 if (!map->stripes[i].dev) { in read_one_chunk()
6463 map->stripes[i].dev = in read_one_chunk()
6466 if (IS_ERR(map->stripes[i].dev)) { in read_one_chunk()
6470 devid, PTR_ERR(map->stripes[i].dev)); in read_one_chunk()
6471 return PTR_ERR(map->stripes[i].dev); in read_one_chunk()
6476 &(map->stripes[i].dev->dev_state)); in read_one_chunk()
6824 struct btrfs_device *dev = map->stripes[i].dev; in btrfs_check_rw_degradable()
7294 dev = map->stripes[i].dev; in btrfs_update_commit_device_bytes_used()
7389 if (map->stripes[i].dev->devid == devid && in verify_one_dev_extent()
7390 map->stripes[i].physical == physical_offset) { in verify_one_dev_extent()