FreeCalypso > hg > ffs-editor
changeset 22:f2fa3f590209
FFS journal_init() bugfix matching Magnetite and Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 22 May 2020 18:26:16 +0000 |
parents | 5dd2fa1d3da1 |
children | 3ca9a198c6ee |
files | src/cs/drivers/drv_app/ffs/board/fsck.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/fsck.c Sat May 16 18:44:01 2020 +0000 +++ b/src/cs/drivers/drv_app/ffs/board/fsck.c Fri May 22 18:26:16 2020 +0000 @@ -1247,7 +1247,7 @@ effs_t journal_init(iref_t i) { int j; - struct inode_s *ip = inode_addr(i); + struct inode_s *ip; struct journal_s *addr; if (i == 0) { @@ -1260,6 +1260,7 @@ fs.journal_depth = 0; fs.journal_pos = JOURNAL_POS_INITIAL; + ip = inode_addr(i); addr = (struct journal_s *) offset2addr(location2offset(ip->location) + fs.journal_pos);