summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-07-14 01:10:24 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:35 -0400
commit4ab35c34d5ab258fdd7325315fe5d94699e51eb4 (patch)
tree678ecaf715a4962e728531f9d493f4d7564c719a /fs/bcachefs/bcachefs.h
parente4085b70f21f0e4b578a50a9fd7e84f2a055010f (diff)
downloadlwn-4ab35c34d5ab258fdd7325315fe5d94699e51eb4.tar.gz
lwn-4ab35c34d5ab258fdd7325315fe5d94699e51eb4.zip
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>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index c07ea9af561d..7020eee5de21 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -514,6 +514,8 @@ enum {
BCH_FS_INITIAL_GC_UNFIXED, /* kill when we enumerate fsck errors */
BCH_FS_NEED_ANOTHER_GC,
+ BCH_FS_HAVE_DELETED_SNAPSHOTS,
+
/* errors: */
BCH_FS_ERROR,
BCH_FS_TOPOLOGY_ERROR,