bcachefs: bch2_btree_path_can_relock()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 11 Apr 2024 01:51:37 +0000 (21:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:19 +0000 (17:29 -0400)
commite590e4e2229409d0e5dc6575a75488d5ebc33b45
tree63e9dbf577289d3ff856b9d3fd54d3fa63563753
parent650db8a87c343c856dcbaed2eb8d184df0308c42
bcachefs: bch2_btree_path_can_relock()

With the new assertions, we shouldn't be holding locks when
trans->locked is false, thus, we shouldn't use relock when we just want
to check if we can relock.

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