bcachefs: Journal space calculations should skip durability=0 devices

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-12-05 12:35:17 -05:00
parent 0ecfac8b60
commit 6315b49e95

View File

@ -146,7 +146,8 @@ static struct journal_space __journal_space_available(struct journal *j, unsigne
rcu_read_lock();
for_each_member_device_rcu(c, ca, &c->rw_devs[BCH_DATA_journal]) {
if (!ca->journal.nr)
if (!ca->journal.nr ||
!ca->mi.durability)
continue;
min_bucket_size = min(min_bucket_size, ca->mi.bucket_size);