diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-05 20:35:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-21 09:36:22 +0300 |
commit | 58117dbdd6ef9ae2b61aedd15a005e0ef19957d2 (patch) | |
tree | 51a62e4b7e63cdfd7ca450c84374592f98d34e5a | |
parent | d4c9fc000bd1bc03cfa0b7650e59060f623cf46d (diff) | |
download | linux-58117dbdd6ef9ae2b61aedd15a005e0ef19957d2.tar.xz |
bcachefs: Journal space calculations should skip durability=0 devices
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/journal_reclaim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_reclaim.c b/fs/bcachefs/journal_reclaim.c index b7936ad3ae7f..3c8242606da7 100644 --- a/fs/bcachefs/journal_reclaim.c +++ b/fs/bcachefs/journal_reclaim.c @@ -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); |