bcachefs: Add missing restart handling to check_topology()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 2 Jun 2025 00:22:17 +0000 (20:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Jun 2025 03:21:29 +0000 (23:21 -0400)
commit47fe65b105f29ef22f463c17ab8a4c0eeb741045
treeecab39f32052798ac2fc5de0fbcb5de5ffbea1fa
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
bcachefs: Add missing restart handling to check_topology()

The next patch will add logging of the specific error being corrected in
repair paths to the journal; this means __bch2_fsck_err() can return
transaction restarts in places that previously weren't expecting them.

check_topology() is old code that doesn't use btree iterators for btree
node locking - it'll have to be rewritten in the future to work online.

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