Lines Matching refs:nr_effective
699 unsigned *nr_effective, in add_new_bucket() argument
705 BUG_ON(*nr_effective >= nr_replicas); in add_new_bucket()
708 *nr_effective += durability; in add_new_bucket()
713 if (*nr_effective >= nr_replicas) in add_new_bucket()
725 unsigned *nr_effective, 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()
787 unsigned *nr_effective, in bucket_alloc_from_stripe() argument
822 nr_replicas, nr_effective, in bucket_alloc_from_stripe()
863 unsigned *nr_effective, in bucket_alloc_set_writepoint() argument
876 nr_replicas, nr_effective, in bucket_alloc_set_writepoint()
891 unsigned *nr_effective, in bucket_alloc_set_partial() argument
928 nr_replicas, nr_effective, in bucket_alloc_set_partial()
946 unsigned *nr_effective, 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()
1014 unsigned *nr_effective, 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()
1333 unsigned nr_effective, write_points_nr; in bch2_alloc_sectors_start_trans() local
1344 nr_effective = 0; 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()
1408 nr_effective >= nr_replicas_required) 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()