bcachefs: Fix a bug with multiple iterators being traversed
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 14 May 2019 17:25:25 +0000 (13:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:21 +0000 (17:08 -0400)
commit33eb63e5753ad6229d4027340153817b92840760
tree6f678b0090831f8ce5b6b5e9ecb4faa22f87bb75
parent1fe93f88c36dcceee9f92055d0a1febbd90338d3
bcachefs: Fix a bug with multiple iterators being traversed

If upgrade fails on one iterator, but it was copied from another
iterator and will be freed before transaction restart, then the original
iterator will get traversed first, so we need to make required btree
nodes on the original iterator will be traversed too.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c