bcachefs: Improve fsck for subvols/snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 14 Jul 2022 09:44:10 +0000 (05:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commit35f1a5034d81416ca820032452bed583f78f1f5e
treea7db6c008faa62617a15897636e88437a39a713a
parent49124d8a7f3bc0f2bd33ba6cdfa2e9514a74b109
bcachefs: Improve fsck for subvols/snapshots

 - Bunch of refactoring, and move some code out of
   bch2_snapshots_start() and into bch2_snapshots_check(), for constency
   with the rest of fsck

 - Interior snapshot nodes no longer point to a subvolume; this is so we
   don't end up with dangling subvol references when deleting or require
   scanning the full snapshots btree.

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