bcachefs: Don't keep around btree_paths unnecessarily
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 5 Mar 2022 20:21:07 +0000 (15:21 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:27 +0000 (17:09 -0400)
commite1f7fa06a8ed48feedd5f538fc4724734c6e1869
tree83942c1b575817d56ee1a934bad7ebd44624d0e6
parentb60c380bca5458be9e4c0ff77289f0979fbbb52f
bcachefs: Don't keep around btree_paths unnecessarily

When bch2_trans_begin() is called and there hasn't been a transaction
restart, we presume that we're now doing something new - iterating over
different keys, and we now shouldn't keep aruond paths related to the
previous transaction, excepting the subvolumes btree.

This should fix some of our "transaction path overflow" bugs.

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