Lines Matching defs:stripe
619 static int __dev_stripe_cmp(struct dev_stripe_state *stripe,
622 return ((stripe->next_alloc[l] > stripe->next_alloc[r]) -
623 (stripe->next_alloc[l] < stripe->next_alloc[r]));
626 #define dev_stripe_cmp(l, r) __dev_stripe_cmp(stripe, l, r)
629 struct dev_stripe_state *stripe,
643 struct dev_stripe_state *stripe,
646 u64 *v = stripe->next_alloc + ca->dev_idx;
658 for (v = stripe->next_alloc;
659 v < stripe->next_alloc + ARRAY_SIZE(stripe->next_alloc); v++)
664 struct dev_stripe_state *stripe)
669 bch2_dev_stripe_increment_inlined(ca, stripe, &usage);
701 struct dev_stripe_state *stripe,
713 bch2_dev_alloc_list(c, stripe, devs_may_alloc);
743 bch2_dev_stripe_increment_inlined(ca, stripe, &usage);
769 * if we can't allocate a new stripe because there are already too many
770 * partially filled stripes, force allocating from an existing stripe even when
805 devs_sorted = bch2_dev_alloc_list(c, &wp->stripe, devs_may_alloc);
991 ret = bch2_bucket_alloc_set_trans(trans, ptrs, &wp->stripe, &devs,