Adopted opened-mdir field in lfsr_file_t

Since we need these for lfsr_dir_t (named b and p), we might as well
adopt one in lfsr_file_t (named m). This at least avoids a cast when
enrolling/unenrolling in the opened-mdir list.
This commit is contained in:
Christopher Haster
2024-01-19 02:01:49 -06:00
parent d2a6a6ee2f
commit d32dbd297a
2 changed files with 130 additions and 133 deletions
+1 -4
View File
@@ -520,10 +520,7 @@ typedef struct lfsr_ftree {
} lfsr_ftree_t;
typedef struct lfsr_file {
struct lfsr_opened *next;
uint8_t type;
uint16_t flags;
lfsr_mdir_t mdir;
lfsr_opened_t m;
// files contain both an active tree and staging tree, to allow
// staging during mdir compacts