summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-03-29 14:21:44 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2022-10-03 22:50:57 -0400
commit9b8a1dff32e62523a845179f229ba46cd8455282 (patch)
tree96e2f171bda8612204950d5b8cb1c5bf4a958e0c
parent4361e727667859a29eec4d1241de844eeee659fa (diff)
bcachefs: Switch a BUG_ON() to a warning
This has popped and thus needs to be debugged, but the assertion firing isn't necessarily fatal so switch it to a warning. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--fs/bcachefs/journal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c
index ab44ed72254a..693bb0833522 100644
--- a/fs/bcachefs/journal.c
+++ b/fs/bcachefs/journal.c
@@ -376,7 +376,8 @@ unlock:
goto retry;
if (ret == -ENOSPC) {
- BUG_ON(!can_discard && (flags & JOURNAL_RES_GET_RESERVED));
+ WARN_ONCE(!can_discard && (flags & JOURNAL_RES_GET_RESERVED),
+ "JOURNAL_RES_GET_RESERVED set but journal full");
/*
* Journal is full - can't rely on reclaim from work item due to