Home
last modified time | relevance | path

Searched refs:nr_devs_want (Results 1 – 1 of 1) sorted by relevance

/linux/fs/bcachefs/
H A Djournal_reclaim.c134 static struct journal_space __journal_space_available(struct journal *j, unsigned nr_devs_want, in __journal_space_available() argument
141 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() local
224 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()