diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 26a8ff38991d..220daf88f7b9 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -375,7 +375,8 @@ static int __journal_res_get(struct journal *j, struct journal_res *res, 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