diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-01-26 20:59:00 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:52 -0400 |
commit | a0b73c1c5363f5e2cd9a7a7968a9d6579548050a (patch) | |
tree | d151045ec7a48f196eb135b1c5491f9939fe6155 /fs/bcachefs/bcachefs.h | |
parent | 5b593ee172bd536a2c9fd717de7e4a16d682ef23 (diff) | |
download | lwn-a0b73c1c5363f5e2cd9a7a7968a9d6579548050a.tar.gz lwn-a0b73c1c5363f5e2cd9a7a7968a9d6579548050a.zip |
bcachefs: Add (partial) support for fixing btree topology
When we walk the btrees during recovery, part of that is checking that
btree topology is correct: for every interior btree node, its child
nodes should exactly span the range the parent node covers.
Previously, we had checks for this, but not repair code. Now that we
have the ability to do btree updates during initial GC, this patch adds
that repair code.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index d5fc5eed73ae..19ba23f7d9dd 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -509,7 +509,8 @@ enum { BCH_FS_ERRORS_FIXED, /* misc: */ - BCH_FS_FIXED_GENS, + BCH_FS_NEED_ANOTHER_GC, + BCH_FS_DELETED_NODES, BCH_FS_NEED_ALLOC_WRITE, BCH_FS_REBUILD_REPLICAS, BCH_FS_HOLD_BTREE_WRITES, |