bcachefs: Fix duplicate paths left by bch2_path_put()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 11 Aug 2022 00:05:14 +0000 (20:05 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commita300261ad19d69e080278ec4950d39caef3ffbf1
tree8c26823e482b4a1a9580ae5fe2bcf185f0fd0600
parent6fae65c112d9fb0a9827bad094e5633fdf2bcbda
bcachefs: Fix duplicate paths left by bch2_path_put()

bch2_path_put() is supposed to drop paths that aren't needed on
transaction restart, or to hold locks that we're supposed to keep until
transaction commit: but it was failing to free paths in some cases that
it should have, leading to transaction path overflows with lots of
duplicate paths.

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