Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Change "accounting overran journal reservation" to a warning

This doesn't need to be a BUG_ON(); the actual serious "things break"
condition is if the whole journal write overruns the available space,
and that has a fatal error, not a BUG_ON(). This check indicates we
screwed something up, but it should be a warning.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+2 -1
+2 -1
fs/bcachefs/journal_io.c
··· 1848 1848 1849 1849 bch2_journal_super_entries_add_common(c, &end, seq); 1850 1850 u64s = (u64 *) end - (u64 *) start; 1851 - BUG_ON(u64s > j->entry_u64s_reserved); 1851 + 1852 + WARN_ON(u64s > j->entry_u64s_reserved); 1852 1853 1853 1854 le32_add_cpu(&jset->u64s, u64s); 1854 1855