bcachefs: bch2_path_get() reuses paths if upgrade_fails & !should_be_locked
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 22:12:54 +0000 (18:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 23 May 2025 11:59:43 +0000 (07:59 -0400)
commitbe9fecdcdaf730dbf2ca70dbe5b6d42922df50d6
tree6d55d830382367d0a61dc9a5cef1a9de126e564f
parentaac49471b6c4a15cdb4bdade8c19527075af073d
bcachefs: bch2_path_get() reuses paths if upgrade_fails & !should_be_locked

Small additional optimization over the previous patch, bringing us
closer to the original behaviour, except when we need to clone to avoid
a transaction restart.

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