bcachefs: Fix subvol/snapshot deleting in recovery
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 14 Jul 2022 05:10:24 +0000 (01:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commit4ab35c34d5ab258fdd7325315fe5d94699e51eb4
tree678ecaf715a4962e728531f9d493f4d7564c719a
parente4085b70f21f0e4b578a50a9fd7e84f2a055010f
bcachefs: Fix subvol/snapshot deleting in recovery

fsck doesn't want to run while we're cleaning up deleted snapshots - if
that work needs to be done, we want it to have finished before fsck
runs, otherwise fsck will get confused when it finds multiple keys in
the same snapshot ID equivalence class (i.e. the mechanism that
snapshot deletion uses for cleaning up redundant keys).

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