mufs: fix va to tree object in super block

This commit is contained in:
S.J.R. van Schaik 2017-06-12 03:25:02 +02:00
parent 92a531b49f
commit 84c45ee64d

View file

@ -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;