mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
bcachefs: Extra write buffer asserts
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
7ad7497862
commit
ac4c7ac90e
|
|
@ -143,6 +143,8 @@ static inline int __must_check bch2_trans_update_buffered(struct btree_trans *tr
|
|||
{
|
||||
kmsan_check_memory(k, bkey_bytes(&k->k));
|
||||
|
||||
EBUG_ON(k->k.u64s > BTREE_WRITE_BUFERED_U64s_MAX);
|
||||
|
||||
if (unlikely(!btree_type_uses_write_buffer(btree))) {
|
||||
int ret = bch2_btree_write_buffer_insert_err(trans, btree, k);
|
||||
dump_stack();
|
||||
|
|
|
|||
|
|
@ -182,6 +182,8 @@ static inline int wb_flush_one(struct btree_trans *trans, struct btree_iter *ite
|
|||
return wb_flush_one_slowpath(trans, iter, wb);
|
||||
}
|
||||
|
||||
EBUG_ON(!bpos_eq(wb->k.k.p, path->pos));
|
||||
|
||||
bch2_btree_insert_key_leaf(trans, path, &wb->k, wb->journal_seq);
|
||||
(*fast)++;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user