mufs: fix va to tree object in super block
This commit is contained in:
parent
92a531b49f
commit
84c45ee64d
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ int mufs_mount(struct mufs *fs, struct flash_dev *dev)
|
|||
fs->log2_nentries = fs->dev->log2_block_size - ilog2(sizeof(uint32_t));
|
||||
|
||||
fs->root.fs = fs;
|
||||
fs->root.va = offsetof(struct mufs_super, root) + 1;
|
||||
fs->root.va = offsetof(struct mufs_super, root);
|
||||
fs->root.file_size = super.root.file_size;
|
||||
fs->root.root = super.root.root;
|
||||
fs->root.depth = super.root.depth;
|
||||
|
|
Loading…
Add table
Reference in a new issue