bcachefs: Fix incorrectly freeing btree_path in alloc path
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 5 Aug 2022 21:08:35 +0000 (17:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:37 +0000 (17:09 -0400)
commit17047fbced563cf5abe5aa546f6a92af48900b69
treef200e08249e838756d464a5f11633016b657e5e9
parent86b74451931790eafa018021fe900faea3230189
bcachefs: Fix incorrectly freeing btree_path in alloc path

Clearing path->preserve means the path will be dropping in
bch2_trans_begin() - but on transaction restart, we're likely to need
that path again.

This fixes a livelock in the allocation path.

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