From cc90a77ff885f371bb902f16e65c0b330f6f534e Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 20 Jun 2024 10:09:28 -0500 Subject: [PATCH] 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%) --- lfs.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lfs.c b/lfs.c index f5c72a3a..599721f4 100644 --- a/lfs.c +++ b/lfs.c @@ -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:;