Lines Matching refs:nr_replicas
753 unsigned nr_replicas, in add_new_bucket() argument
760 BUG_ON(*nr_effective >= nr_replicas); in add_new_bucket()
768 if (*nr_effective >= nr_replicas) in add_new_bucket()
779 unsigned nr_replicas, in bch2_bucket_alloc_set_trans() argument
792 BUG_ON(*nr_effective >= nr_replicas); in bch2_bucket_alloc_set_trans()
822 nr_replicas, nr_effective, in bch2_bucket_alloc_set_trans()
845 unsigned nr_replicas, in bucket_alloc_from_stripe() argument
859 if (nr_replicas < 2) in bucket_alloc_from_stripe()
865 h = bch2_ec_stripe_head_get(trans, target, 0, nr_replicas - 1, watermark, cl); in bucket_alloc_from_stripe()
890 nr_replicas, nr_effective, in bucket_alloc_from_stripe()
927 unsigned nr_replicas, in bucket_alloc_set_writepoint() argument
941 nr_replicas, nr_effective, in bucket_alloc_set_writepoint()
955 unsigned nr_replicas, in bucket_alloc_set_partial() argument
993 nr_replicas, nr_effective, in bucket_alloc_set_partial()
1010 unsigned nr_replicas, in __open_bucket_add_buckets() argument
1034 nr_replicas, nr_effective, in __open_bucket_add_buckets()
1040 nr_replicas, nr_effective, in __open_bucket_add_buckets()
1048 nr_replicas, nr_effective, in __open_bucket_add_buckets()
1058 nr_replicas, nr_effective, have_cache, in __open_bucket_add_buckets()
1078 unsigned nr_replicas, in open_bucket_add_buckets() argument
1090 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1097 if (*nr_effective >= nr_replicas) in open_bucket_add_buckets()
1103 nr_replicas, nr_effective, have_cache, in open_bucket_add_buckets()
1387 unsigned nr_replicas, in bch2_alloc_sectors_start_trans() argument
1406 BUG_ON(!nr_replicas || !nr_replicas_required); in bch2_alloc_sectors_start_trans()
1426 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1437 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1456 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1462 nr_replicas, &nr_effective, in bch2_alloc_sectors_start_trans()
1467 BUG_ON(!ret && nr_effective < nr_replicas); in bch2_alloc_sectors_start_trans()
1479 if (nr_effective > nr_replicas) in bch2_alloc_sectors_start_trans()
1480 deallocate_extra_replicas(c, &ptrs, &wp->ptrs, nr_effective - nr_replicas); in bch2_alloc_sectors_start_trans()