Skip to content

Commit 172a186

Browse files
committed
compact when dir count hits 0x3ff
1 parent 8e251dd commit 172a186

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,6 +2333,10 @@ static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir,
23332333
lfs->gdisk = lfs->gstate;
23342334
lfs->gdelta = (lfs_gstate_t){0};
23352335

2336+
if(dir->count == 0x3ff)
2337+
{
2338+
goto compact;
2339+
}
23362340
goto fixmlist;
23372341
}
23382342

0 commit comments

Comments
 (0)