compact when dir count hits 0x3ff

This commit is contained in:
David
2025-09-02 19:36:10 -04:00
parent 8e251dd675
commit 172a186fa9

4
lfs.c
View File

@@ -2333,6 +2333,10 @@ static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir,
lfs->gdisk = lfs->gstate;
lfs->gdelta = (lfs_gstate_t){0};
if(dir->count == 0x3ff)
{
goto compact;
}
goto fixmlist;
}