bcachefs: Improve snapshots_seen
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 14 Jul 2022 06:47:36 +0000 (02:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commit49124d8a7f3bc0f2bd33ba6cdfa2e9514a74b109
tree59645c4ec1ba715ab4eac85f0cb69fa42dc698c3
parent4ab35c34d5ab258fdd7325315fe5d94699e51eb4
bcachefs: Improve snapshots_seen

This makes the snapshots_seen data structure fsck private and improves
it; we now also track the equivalence class for each snapshot id we've
seen, which means we can detect when snapshot deletion hasn't finished
or run correctly (which will otherwise confuse fsck).

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