bcachefs: Fix assertion in topology repair
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 23 Jun 2022 01:33:43 +0000 (21:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000 (17:09 -0400)
commit2817d453819a10654ac72e5f4937d4653dea1648
tree38e0bd51bb51ba821b571b34f9c852ea81a77604
parent5a3c24714c8bd5e0d01d1547c0848147f2f79f69
bcachefs: Fix assertion in topology repair

If we were at the end of the node, when breaking out of the loop we'd
pop the assertion on line 446 when cur wasn't NULL.

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