mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 17:17:04 -04:00
bcachefs: Call bch2_btree_iter_traverse() if necessary in commit path
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
72545b5e76
commit
8804ef1f28
@@ -830,9 +830,9 @@ int __bch2_trans_commit(struct btree_trans *trans)
|
||||
trans_trigger_run = false;
|
||||
|
||||
trans_for_each_update(trans, i) {
|
||||
if (unlikely(i->iter->uptodate > BTREE_ITER_NEED_PEEK)) {
|
||||
if (unlikely(i->iter->uptodate > BTREE_ITER_NEED_PEEK &&
|
||||
(ret = bch2_btree_iter_traverse(i->iter)))) {
|
||||
trace_trans_restart_traverse(trans->ip);
|
||||
ret = -EINTR;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user