mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
9b54efe66c
commit
e31144f8cb
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user