Searched refs:nr_devs_want (Results 1 – 1 of 1) sorted by relevance
134 static struct journal_space __journal_space_available(struct journal *j, unsigned nr_devs_want, in __journal_space_available() argument141 BUG_ON(nr_devs_want > ARRAY_SIZE(dev_space)); in __journal_space_available()160 if (nr_devs < nr_devs_want) in __journal_space_available()167 return dev_space[nr_devs_want - 1]; in __journal_space_available()176 unsigned nr_online = 0, nr_devs_want; in bch2_journal_space_available() local224 nr_devs_want = min_t(unsigned, nr_online, c->opts.metadata_replicas); in bch2_journal_space_available()227 j->space[i] = __journal_space_available(j, nr_devs_want, i); in bch2_journal_space_available()