bcachefs: Add missing EBUG_ON

Just like the EBUG_ON in bch2_journal_add_entry().

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Alan Huang
2025-06-13 03:01:58 +08:00
committed by Kent Overstreet
parent 9b54efe66c
commit e31144f8cb
+2
View File
@@ -757,6 +757,8 @@ bch2_trans_commit_write_locked(struct btree_trans *trans, unsigned flags,
btree_trans_journal_entries_start(trans),
trans->journal_entries.u64s);
EBUG_ON(trans->journal_res.u64s < trans->journal_entries.u64s);
trans->journal_res.offset += trans->journal_entries.u64s;
trans->journal_res.u64s -= trans->journal_entries.u64s;