Reverting most of internal LFS_F_CANLOOKAHEAD

It's really not that much code (36 bytes, and only if you call
lfsr_fs_gc), and implicit state is better the explicit state (less
things that can fall out of sync).

I'm keeping the fancy F/GC flag masking in lfsr_fs_gc though.

Code changes:

           code          stack
  before: 35988           2696
  after:  36024 (+0.1%)   2696 (+0.0%)
This commit is contained in:
Christopher Haster
2024-07-25 17:57:55 -05:00
parent b7e7313ef0
commit e812ac4a8c
2 changed files with 10 additions and 19 deletions
-2
View File
@@ -166,8 +166,6 @@ enum lfs_type {
// internally used flags
#define LFS_F_ORPHANS 0x01000000 // Filesystem may have untracked orphans
#define LFS_F_CANLOOKAHEAD \
0x02000000 // Lookahead buffer is not full
#define LFS_F_UNCOMPACTED \
0x08000000 // Filesystem may have uncompacted metadata