Rearranged things so high-level fs functions come last

This is how littlefs used to be organized, and I found it a bit easier
to navigate: low-level => go to front, high-level => go to end.

This also moves lfs_alloc immediately after the mtree logic, which is
sort of related, and before anything high-level.

lfs_init/lfs_deinit are also now immediately before lfs_mount/
lfs_unmount/lfs_format, which are closely intertwined.

This did actually affect our code cost, which is interesting. No logic
was changed, only moved:

           code          stack
  before: 34566           2632
  after:  34576 (+0.0%)   2632 (+0.0%)
This commit is contained in:
Christopher Haster
2024-06-23 14:53:59 -05:00
parent c934357d60
commit b383821a22
+1309 -1400
View File
File diff suppressed because it is too large Load Diff