projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4c9fc0
)
bcachefs: Journal space calculations should skip durability=0 devices
author
Kent Overstreet
<kent.overstreet@linux.dev>
Thu, 5 Dec 2024 17:35:17 +0000
(12:35 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:22 +0000
(
01:36
-0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/journal_reclaim.c
b/fs/bcachefs/journal_reclaim.c
index
b7936ad
..
3c82426
100644
(file)
--- 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);