From 98b4aaccc58772f238625860d2373f2428d878b1 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 29 Apr 2025 01:35:12 -0500 Subject: [PATCH] Dropped lfsr_tag_key from in-device lfsr_mdir_commit__ tags I think this was left over from when we handled LFSR_TAG_SHRUBTRUNK in lfsr_mdir_commit__, which needed to forward mode bits to the generated rattr. Now that lfsr_mdir_commit__ only handles high-level in-device tags, we can drop the lfsr_tag_key masks and save a bit of code: code stack ctx before: 35796 2368 640 after: 35772 (-0.1%) 2368 (+0.0%) 640 (+0.0%) --- lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs.c b/lfs.c index 64465cd1..bd5f62ff 100644 --- a/lfs.c +++ b/lfs.c @@ -7977,7 +7977,7 @@ static int lfsr_mdir_commit__(lfs_t *lfs, lfsr_mdir_t *mdir, } // custom attributes need to be reencoded into our tag format - } else if (lfsr_tag_key(rattrs[i].tag) == LFSR_TAG_ATTRS) { + } else if (rattrs[i].tag == LFSR_TAG_ATTRS) { const struct lfs_attr *attrs_ = rattrs[i].u.etc; lfs_size_t attr_count_ = rattrs[i].count;