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: