mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 04:21:03 -04:00
bcachefs: Don't overflow trans with iters from triggers
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
8d591d5da4
commit
0c04f5eb0d
@@ -1359,6 +1359,8 @@ static int trans_get_key(struct btree_trans *trans,
|
||||
if (IS_ERR(*iter))
|
||||
return PTR_ERR(*iter);
|
||||
|
||||
bch2_trans_iter_free_on_commit(trans, *iter);
|
||||
|
||||
*k = bch2_btree_iter_peek_slot(*iter);
|
||||
ret = bkey_err(*k);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user