mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 10:46:33 +00:00
bcachefs: Clear iter->should_be_locked in bch2_trans_reset
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
290448ed2e
commit
bb6bbf4a06
@ -2312,9 +2312,11 @@ void bch2_trans_reset(struct btree_trans *trans, unsigned flags)
|
|||||||
{
|
{
|
||||||
struct btree_iter *iter;
|
struct btree_iter *iter;
|
||||||
|
|
||||||
trans_for_each_iter(trans, iter)
|
trans_for_each_iter(trans, iter) {
|
||||||
iter->flags &= ~(BTREE_ITER_KEEP_UNTIL_COMMIT|
|
iter->flags &= ~(BTREE_ITER_KEEP_UNTIL_COMMIT|
|
||||||
BTREE_ITER_SET_POS_AFTER_COMMIT);
|
BTREE_ITER_SET_POS_AFTER_COMMIT);
|
||||||
|
iter->should_be_locked = false;
|
||||||
|
}
|
||||||
|
|
||||||
bch2_trans_unlink_iters(trans);
|
bch2_trans_unlink_iters(trans);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user