summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_cache.h?id=faa6cb6c13c7223240366ebbf0217a6191fbfc32
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-28 22:09:13 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:05 -0400
commitfaa6cb6c13c7223240366ebbf0217a6191fbfc32 (patch)
treec41d92045b9cdd9f84c1f0188ab4d7311796c2bc /fs/bcachefs/btree_cache.h?id=faa6cb6c13c7223240366ebbf0217a6191fbfc32
parentbc652905c60b504ded266448b2810242d24c8d88 (diff)
bcachefs: Allow for unknown btree IDs
We need to allow filesystems with metadata from newer versions to be mountable and usable by older versions. This patch enables us to roll out new btrees without a new major version number; we can now handle btree roots for unknown btree types. The unknown btree roots will be retained, and fsck (including backpointers) will check them, the same as other btree types. We add a dynamic array for the extra, unknown btree roots, in addition to the fixed size btree root array, and add new helpers for looking up btree roots. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_cache.h?id=faa6cb6c13c7223240366ebbf0217a6191fbfc32')
0 files changed, 0 insertions, 0 deletions