32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 6315b49e95cf0af5196f1931a019d63a02d2a2a1 Mon Sep 17 00:00:00 2001
|
|
From: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Date: Thu, 5 Dec 2024 12:35:17 -0500
|
|
Subject: [PATCH 175/233] bcachefs: Journal space calculations should skip
|
|
durability=0 devices
|
|
Content-Type: text/plain; charset="utf-8"
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
|
|
---
|
|
fs/bcachefs/journal_reclaim.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
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);
|
|
--
|
|
2.45.2
|
|
|