Rearranged things to group bshrub/btree logic together

There is a cyclic dependency between the bshrub and mdir logic, so
there's no obvious order, but grouping up bshrubs and btrees makes a lot
of sense since they share many low-level operations (lfsr_btree_commit_,
lfsr_btree_traverse_, etc).

Bshrubs really are just inlined btrees after all.

lfs.c is now roughly organized into three large sections:

1. Raw on-disk data structures (rbyds, btrees, bshrubs, etc)
2. The mess that is metadata (mtree, mdirs, etc)
3. High-level types/functions (files, dirs, mount, traversals, etc)

No code changes.
This commit is contained in:
Christopher Haster
2024-06-23 14:24:34 -05:00
parent 55d9f5c76a
commit c934357d60
+653 -685
View File
File diff suppressed because it is too large Load Diff