bcachefs: Refactor checking of btree topology
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 26 Jan 2021 21:04:38 +0000 (16:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:52 +0000 (17:08 -0400)
commita66f7989742a0071ea4d5d0b0674978ac8ce30ab
tree9f9418964169f4c78a7f40a4c348808cb626a2cb
parente4c3f386b62d8f7e917b26089c7dea374f7c1fb6
bcachefs: Refactor checking of btree topology

Still a lot of work to be done here: we can't yet repair btree topology
issues, but this patch refactors things so that we have better access to
what we need in the topology checks. Next up will be figuring out a way
to do btree updates during gc, before journal replay is done.

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