Lines Matching refs:nr_replicas
679 unsigned nr_replicas, in add_new_bucket() argument
686 BUG_ON(*nr_effective >= nr_replicas); in add_new_bucket()
694 if (*nr_effective >= nr_replicas) in add_new_bucket()
705 unsigned nr_replicas, in bch2_bucket_alloc_set_trans() argument
716 BUG_ON(*nr_effective >= nr_replicas); in bch2_bucket_alloc_set_trans()
744 nr_replicas, nr_effective, in bch2_bucket_alloc_set_trans()
767 unsigned nr_replicas, in bucket_alloc_from_stripe() argument
777 if (nr_replicas < 2) in bucket_alloc_from_stripe()
784 bch2_ec_stripe_head_get(trans, target, 0, nr_replicas - 1, watermark, cl); in bucket_alloc_from_stripe()
803 nr_replicas, nr_effective, in bucket_alloc_from_stripe()
843 unsigned nr_replicas, in bucket_alloc_set_writepoint() argument
857 nr_replicas, nr_effective, in bucket_alloc_set_writepoint()
871 unsigned nr_replicas, in bucket_alloc_set_partial() argument
909 nr_replicas, nr_effective, in bucket_alloc_set_partial()
926 unsigned nr_replicas, in __open_bucket_add_buckets() argument
950 nr_replicas, nr_effective, in __open_bucket_add_buckets()
956 nr_replicas, nr_effective, in __open_bucket_add_buckets()
964 nr_replicas, nr_effective, in __open_bucket_add_buckets()
974 nr_replicas, nr_effective, have_cache, in __open_bucket_add_buckets()
994 unsigned nr_replicas, in open_bucket_add_buckets() argument
1006 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1013 if (*nr_effective >= nr_replicas) in open_bucket_add_buckets()
1019 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1303 unsigned nr_replicas, in bch2_alloc_sectors_start_trans() argument
1322 BUG_ON(!nr_replicas || !nr_replicas_required); in bch2_alloc_sectors_start_trans()
1342 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1353 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1372 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1378 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1383 BUG_ON(!ret && nr_effective < nr_replicas); in bch2_alloc_sectors_start_trans()
1395 if (nr_effective > nr_replicas) in bch2_alloc_sectors_start_trans()
1396 deallocate_extra_replicas(c, &ptrs, &wp->ptrs, nr_effective - nr_replicas); in bch2_alloc_sectors_start_trans()