Files
littlefs/scripts
Christopher Haster 9f0160556f Made significant progress around inlined-file state during mdir commits
The main improvement is moving the special inlined-file compaction logic
up into lfsr_mdir_compact__. We only need this logic for files stored in
mdirs, and thanks to its recursive nature, we weren't getting any
benefit from handling this at a lower level anyways.

This is a nice logical restructuring that probably saves a bit of code
cost in the end.

Another significant improvement is moving the staging copy of the
inlined tree's state up into the file struct itself. This solves the
problem of needed N copies of temporary inlined state when you have N
open files.

It also provides a central place to stage changes when compacting
inlined trees, which happens across several different places in the mdir
commit logic. Though some may see this as more a hack than a feature.

Also note-worthy, but minor: these changes required an additional
opened-mdir linked-list to know when the mdir is a file and may contain
an inlined tree.
2023-10-13 23:19:24 -05:00
..
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2020-11-22 15:05:22 -06:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00