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:
@@ -8062,14 +8062,9 @@ static int lfsr_fs_traverse_(lfs_t *lfs, lfsr_mtraversal_t *mt,
|
|||||||
// transition to traversing the mdir
|
// transition to traversing the mdir
|
||||||
mt->o.state = LFSR_TSTATE_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->tag = LFSR_TAG_MDIR;
|
||||||
mtinfo->u.mdir = mt->o.mdir;
|
mtinfo->u.mdir = mt->o.mdir;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// scan for blocks/btrees in the current mdir
|
// scan for blocks/btrees in the current mdir
|
||||||
case LFSR_TSTATE_MDIR:;
|
case LFSR_TSTATE_MDIR:;
|
||||||
|
|||||||
Reference in New Issue
Block a user