Replaced mleafweight with explicit 1 << mdir_bits

The mleafweight naming is... not great...

Renaming mleaf_bits -> mdir_bits and replacing mleafweight with explicit
shifts of 1 << mdir_bits seems to get the job done without introducing a
new and potentially confusing name.

This was a lesson learned from recycle_bits. Sometimes more helpers just
makes code less, not more, readable.
This commit is contained in:
Christopher Haster
2024-05-24 01:30:51 -05:00
parent dd007245a7
commit 081a74cb23
3 changed files with 169 additions and 175 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ typedef struct lfs {
int8_t recycle_bits;
uint8_t attr_estimate;
uint8_t mleaf_bits;
uint8_t mdir_bits;
// linked-list of opened mdirs
lfsr_opened_t *opened;