summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-12-30 19:30:42 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:19 -0400
commitc64740ef27cfe2092e3a56509b3bf44e9b10ae49 (patch)
tree813348a007f94ed35d9dd1161b76c3452bc7ede9 /fs/bcachefs/bcachefs.h
parent77170d0dd7020ed72cd748a0c354bf0c0345b6b3 (diff)
downloadlwn-c64740ef27cfe2092e3a56509b3bf44e9b10ae49.tar.gz
lwn-c64740ef27cfe2092e3a56509b3bf44e9b10ae49.zip
bcachefs: Don't start allocator threads too early
If the allocator threads start before journal replay has finished replaying alloc keys, journal replay might overwrite the allocator's btree updates. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index c8c7f6b8ee21..5f18531dc34c 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -509,6 +509,7 @@ enum {
BCH_FS_INITIAL_GC_DONE,
BCH_FS_INITIAL_GC_UNFIXED,
BCH_FS_TOPOLOGY_REPAIR_DONE,
+ BCH_FS_ALLOC_REPLAY_DONE,
BCH_FS_BTREE_INTERIOR_REPLAY_DONE,
BCH_FS_FSCK_DONE,
BCH_FS_STARTED,