bcachefs: Set path->uptodate when no node at level
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 24 Jan 2024 21:32:12 +0000 (16:32 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 19:30:56 +0000 (15:30 -0400)
commitfadc6067f2dded5affe0ef281847fa968f1e1354
tree37c75a0ddf6ea5396ea3f4b5faa91f4cfbad1b14
parent94817db95681155437100d9f25b3e1390fff8ad6
bcachefs: Set path->uptodate when no node at level

We were failing to set path->uptodate when reaching the end of a btree
node iterator, causing the new prefetch code for backpointers gc to go
into an infinite loop.

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