t: Dropped first-time mdir check for LFSR_TSTATE_MDIR

We don't need this anymore now that clobbering skips entire mdirs.

Code changes:

           code          stack
  before: 34566           2624
  after:  34554 (-0.0%)   2624 (+0.0%)
This commit is contained in:
Christopher Haster
2024-06-20 10:09:28 -05:00
parent 5b72973f8f
commit cc90a77ff8
+3 -8
View File
@@ -8062,14 +8062,9 @@ static int lfsr_fs_traverse_(lfs_t *lfs, lfsr_mtraversal_t *mt,
// transition to traversing the mdir
mt->o.state = LFSR_TSTATE_MDIR;
// first time we've seen this mdir?
if (lfsr_mid_rid(lfs, mt->o.mdir.mid) == 0) {
mtinfo->tag = LFSR_TAG_MDIR;
mtinfo->u.mdir = mt->o.mdir;
return 0;
}
continue;
mtinfo->tag = LFSR_TAG_MDIR;
mtinfo->u.mdir = mt->o.mdir;
return 0;
// scan for blocks/btrees in the current mdir
case LFSR_TSTATE_MDIR:;