FreeCalypso > hg > fc-selenite
changeset 191:4725fe5932c4
FFS journal_init() bugfix from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 22 May 2020 18:04:44 +0000 |
parents | 49c7ed5eeadd |
children | 4f40ae165be4 |
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 Thu Apr 16 17:29:54 2020 +0000 +++ b/src/cs/drivers/drv_app/ffs/board/fsck.c Fri May 22 18:04:44 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);