mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
bcachefs: Journal space calculations should skip durability=0 devices
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
0ecfac8b60
commit
6315b49e95
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user