Lines Matching defs:stripes
43 struct btrfs_bio_stripe stripes[];
1773 ret = btrfs_free_dev_extent(trans, map->stripes[i].dev,
1774 map->stripes[i].physical);
1777 if (map->stripes[i].dev) {
1778 ret = btrfs_update_device(trans, map->stripes[i].dev);
2244 /* we don't want tiny stripes */
2290 map->stripes[index].dev = device;
2291 map->stripes[index].physical = dev_offset;
2294 map->stripes[index].dev = device;
2295 map->stripes[index].physical =
2362 device = map->stripes[index].dev;
2363 dev_offset = map->stripes[index].physical;
2397 device = map->stripes[index].dev;
2407 device = map->stripes[index].dev;
2408 dev_offset = map->stripes[index].physical;
2559 if (!map->stripes[i].dev->writeable) {
2621 if (map->stripes[optimal].dev->bdev)
2624 if (map->stripes[i].dev->bdev)
2707 * stripe_nr counts the total number of stripes we have to stride
2767 * after this do_div call, stripe_nr is the number of stripes
2780 device = map->stripes[stripe_index].dev;
2787 multi->stripes[i].physical =
2788 map->stripes[stripe_index].physical +
2790 multi->stripes[i].dev = map->stripes[stripe_index].dev;
2842 if (devid && map->stripes[i].dev->devid != devid)
2844 if (map->stripes[i].physical > physical ||
2845 map->stripes[i].physical + length <= physical)
2848 stripe_nr = physical - map->stripes[i].physical;
3033 bio->bi_sector = multi->stripes[dev_nr].physical >> 9;
3034 dev = multi->stripes[dev_nr].dev;
3151 map->stripes[i].physical =
3157 map->stripes[i].dev = btrfs_find_device(root, devid, uuid,
3159 if (!map->stripes[i].dev && !btrfs_test_opt(root, DEGRADED)) {
3164 if (!map->stripes[i].dev) {
3165 map->stripes[i].dev =
3167 if (!map->stripes[i].dev) {
3173 map->stripes[i].dev->in_fs_metadata = 1;