mufs: write tree updates to disk
This commit is contained in:
parent
250c9bf200
commit
7212269675
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ static int mufs_do_lookup(struct mufs *fs, uint32_t *page,
|
|||
if (!table[index]) {
|
||||
if (!alloc || mufs_alloc_block(fs, &table[index]) < 0)
|
||||
return -1;
|
||||
|
||||
if (flash_write(fs->dev, base << fs->dev->log2_block_size, data,
|
||||
sizeof data) == 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return mufs_do_lookup(fs, page, table[index], depth - 1, va, alloc);
|
||||
|
|
Loading…
Add table
Reference in a new issue