Lines Matching refs:old_s
336 const struct bch_stripe *old_s = old.k->type == KEY_TYPE_stripe in mark_stripe_buckets() local
341 BUG_ON(old_s && new_s && old_s->nr_blocks != new_s->nr_blocks); in mark_stripe_buckets()
343 unsigned nr_blocks = new_s ? new_s->nr_blocks : old_s->nr_blocks; in mark_stripe_buckets()
346 if (new_s && old_s && in mark_stripe_buckets()
348 &old_s->ptrs[i], in mark_stripe_buckets()
359 if (old_s) { in mark_stripe_buckets()
391 const struct bch_stripe *old_s = old.k->type == KEY_TYPE_stripe in bch2_trigger_stripe() local
399 BUG_ON(new_s && old_s && in bch2_trigger_stripe()
400 (new_s->nr_blocks != old_s->nr_blocks || in bch2_trigger_stripe()
401 new_s->nr_redundant != old_s->nr_redundant)); in bch2_trigger_stripe()
408 if (new_s && old_s && in bch2_trigger_stripe()
409 new_s->nr_blocks == old_s->nr_blocks && in bch2_trigger_stripe()
410 new_s->nr_redundant == old_s->nr_redundant && in bch2_trigger_stripe()
411 !memcmp(old_s->ptrs, new_s->ptrs, in bch2_trigger_stripe()
459 if (old_s) { in bch2_trigger_stripe()
460 s64 sectors = -((s64) le16_to_cpu(old_s->sectors)) * old_s->nr_redundant; in bch2_trigger_stripe()
501 if (!old_s) in bch2_trigger_stripe()