Lines Matching defs:stripe

36 #include "raid-stripe-tree.h"
3816 struct btrfs_stripe *stripe;
3821 stripe = btrfs_stripe_nr(chunk, i);
3822 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid)
3843 struct btrfs_stripe *stripe;
3858 stripe = btrfs_stripe_nr(chunk, i);
3859 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid)
3862 stripe_offset = btrfs_stripe_offset(leaf, stripe);
5429 * The DUP profile stores more than one stripe per device, the
5535 struct btrfs_io_stripe *stripe = &map->stripes[i];
5536 struct btrfs_device *device = stripe->dev;
5538 set_extent_bit(&device->alloc_state, stripe->physical,
5539 stripe->physical + map->stripe_size - 1,
5547 struct btrfs_io_stripe *stripe = &map->stripes[i];
5548 struct btrfs_device *device = stripe->dev;
5550 __clear_extent_bit(&device->alloc_state, stripe->physical,
5551 stripe->physical + map->stripe_size - 1,
5773 struct btrfs_stripe *stripe;
5794 * not exists, or persisting a stripe of the chunk item with such ID.
5827 stripe = &chunk->stripe;
5832 btrfs_set_stack_stripe_devid(stripe, device->devid);
5833 btrfs_set_stack_stripe_offset(stripe, dev_offset);
5834 memcpy(stripe->dev_uuid, device->uuid, BTRFS_UUID_SIZE);
5835 stripe++;
6000 * Fail a stripe at a time on every retry except the
6001 * stripe under reconstruction.
6191 /* stripe_offset is the offset of this block in its stripe */
6202 * the number of our device in the stripe array
6251 * Special for the first stripe and
6252 * the last stripe:
6353 * For GET_READ_MIRRORS, we can only return at most 1 extra stripe for
6365 * Swap the last stripe stripes and reduce @nr_extra_stripes.
6366 * The extra stripe would still be there, but won't be accessed.
6384 * Stripe_nr is the stripe where this block falls. stripe_offset is
6385 * the offset of this block in its stripe.
6396 * For full stripe start, we use previously calculated
6410 * For writes to RAID56, allow to write a full stripe set, but
6411 * no straddling of stripe sets.
6418 * For other RAID types and for RAID56 reads, allow a single stripe (on
6546 * Needs full stripe mapping.
6548 * Push stripe_nr back to the start of the full stripe For those cases
6549 * needing a full stripe, @stripe_nr is the full stripe number.
6561 /* Return the length to the full stripe end. */
6576 /* Just grab the data stripe directly. */
6601 * due to factors like zones and RAID0/5/6/10 stripe
6628 * data/P stripe error and rebuild from the remaining
6703 * the number of our device in the stripe array
6710 "stripe index math went horribly wrong, got stripe_index=%u, num_stripes=%u",
6783 * stripe into the bioc.
7409 * At least one btrfs_chunk with one stripe must be present,
7410 * exact stripe count check comes afterwards
8351 * - The range does not cross stripe boundary
8370 /* The map range should not cross stripe boundary. */
8373 /* Already mapped to single stripe. */
8377 /* Map the RAID56 multi-stripe writes to a single one. */