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%)
This commit is contained in:
Christopher Haster
2025-04-29 01:35:12 -05:00
parent ee406c1709
commit 98b4aaccc5
+1 -1
View File
@@ -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;