Reverted moving the lfsr_file_t's cfg field first

Now that lfsr_dir_t contains a single lfsr_opened_t, it makes sense for
lfsr_opened_t to always come first in lfsr_dir_t/lfsr_file_t for
consistency.

This also allows cheaper lfsr_file_t <-> lfsr_opened_t casts (noops),
which saves a bit of code:

           code          stack
  before: 33582           2632
  after:  33538 (-0.1%)   2632 (+0.0%)
This commit is contained in:
Christopher Haster
2024-05-17 15:43:28 -05:00
parent aa1d2f0cf9
commit d6826cd7d0
2 changed files with 29 additions and 47 deletions
+1 -1
View File
@@ -509,8 +509,8 @@ typedef struct lfsr_bshrub {
} lfsr_bshrub_t;
typedef struct lfsr_file {
const struct lfs_file_config *cfg;
lfsr_opened_t m;
const struct lfs_file_config *cfg;
// files contain both an active bshrub and staging bshrub, to allow
// staging during mdir compacts