bcachefs: Fix bch2_btree_node_fill() for !path
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 12 Apr 2024 19:54:33 +0000 (15:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 15 Apr 2024 00:02:11 +0000 (20:02 -0400)
commite879389f5777de5d94f27f8d88d7e92341afa3ef
treea24a17e24ed5bb16d04a533324970ab44c501256
parent8cf2036e7b557282667a437d409e6307d55366ab
bcachefs: Fix bch2_btree_node_fill() for !path

We shouldn't be doing the unlock/relock dance when we're not using a
path - this fixes an assertion pop when called from btree node scan.

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