Dropped lfsr_data_t hole representation

We don't need this, it's not easily gc-able, and encourages redundant
lookups. It's better to just handle holes explicitly where needed.
This commit is contained in:
Christopher Haster
2023-12-11 10:56:14 -06:00
parent 4534d095e9
commit fcddef6f1a
2 changed files with 2 additions and 52 deletions
-5
View File
@@ -420,7 +420,6 @@ typedef struct lfs_mdir {
// The exact representation of in-device data also depends on the
// mode field:
// - pointer to a RAM-backed buffer
// - implicitly zero-filled holes
// - inlined data able to fit at least 1 leb128
// - an array of concatenated datas
//
@@ -440,10 +439,6 @@ typedef struct lfsr_data {
uint8_t mode;
const uint8_t *buffer;
} buf;
struct {
lfs_ssize_t size;
uint8_t mode;
} hole;
struct {
lfs_ssize_t size;
uint8_t mode;