Lines Matching refs:nr_replicas

698 			   unsigned nr_replicas,  in add_new_bucket()  argument
705 BUG_ON(*nr_effective >= nr_replicas); in add_new_bucket()
713 if (*nr_effective >= nr_replicas) in add_new_bucket()
724 unsigned nr_replicas, in bch2_bucket_alloc_set_trans() argument
735 BUG_ON(*nr_effective >= nr_replicas); in bch2_bucket_alloc_set_trans()
763 nr_replicas, nr_effective, in bch2_bucket_alloc_set_trans()
786 unsigned nr_replicas, in bucket_alloc_from_stripe() argument
796 if (nr_replicas < 2) in bucket_alloc_from_stripe()
803 bch2_ec_stripe_head_get(trans, target, 0, nr_replicas - 1, watermark, cl); in bucket_alloc_from_stripe()
822 nr_replicas, nr_effective, in bucket_alloc_from_stripe()
862 unsigned nr_replicas, in bucket_alloc_set_writepoint() argument
876 nr_replicas, nr_effective, in bucket_alloc_set_writepoint()
890 unsigned nr_replicas, in bucket_alloc_set_partial() argument
928 nr_replicas, nr_effective, in bucket_alloc_set_partial()
945 unsigned nr_replicas, in __open_bucket_add_buckets() argument
969 nr_replicas, nr_effective, in __open_bucket_add_buckets()
975 nr_replicas, nr_effective, in __open_bucket_add_buckets()
983 nr_replicas, nr_effective, in __open_bucket_add_buckets()
993 nr_replicas, nr_effective, have_cache, in __open_bucket_add_buckets()
1013 unsigned nr_replicas, in open_bucket_add_buckets() argument
1025 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1032 if (*nr_effective >= nr_replicas) in open_bucket_add_buckets()
1038 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1322 unsigned nr_replicas, in bch2_alloc_sectors_start_trans() argument
1341 BUG_ON(!nr_replicas || !nr_replicas_required); in bch2_alloc_sectors_start_trans()
1361 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1372 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1391 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1397 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1402 BUG_ON(!ret && nr_effective < nr_replicas); in bch2_alloc_sectors_start_trans()
1414 if (nr_effective > nr_replicas) in bch2_alloc_sectors_start_trans()
1415 deallocate_extra_replicas(c, &ptrs, &wp->ptrs, nr_effective - nr_replicas); in bch2_alloc_sectors_start_trans()