Replaced lfs->seed with lfs->gcksum for pseudorandom noise

lfs->seed was already just the rough xor of all mdir cksums, so
replacing it with our gcksum doesn't really do anything but make its
definition more rigorous.

That and save both code and ctx:

           code          stack          ctx
  before: 38560           2624          644
  after:  38492 (-0.2%)   2624 (+0.0%)  640 (-0.6%)
This commit is contained in:
Christopher Haster
2025-01-18 02:35:16 -06:00
parent c86f3bda00
commit 8cfaacbfb6
2 changed files with 3 additions and 17 deletions
-1
View File
@@ -850,7 +850,6 @@ typedef struct lfs {
lfsr_mdir_t mroot;
lfsr_mtree_t mtree;
uint32_t seed;
struct {
lfs_block_t block;