From 2501560cd691fcdb9c310dccc14ac4e7486c99d9 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Sun, 18 Aug 2019 14:35:11 -0400 Subject: Cosmetic cleanup: fsinit reads sb and calls loginit. initialize icache in main.c and don't make it disk specific; the icache is shared. This doesn't matter since we have only one disk, but conceptually cleaner and maybe helpful to students for mount lab. --- kernel/defs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/defs.h') diff --git a/kernel/defs.h b/kernel/defs.h index 2689bed..23dcd41 100644 --- a/kernel/defs.h +++ b/kernel/defs.h @@ -35,12 +35,12 @@ int filestat(struct file*, uint64 addr); int filewrite(struct file*, uint64, int n); // fs.c -void readsb(int dev, struct superblock *sb); +void fsinit(int); int dirlink(struct inode*, char*, uint); struct inode* dirlookup(struct inode*, char*, uint*); struct inode* ialloc(uint, short); struct inode* idup(struct inode*); -void iinit(int dev); +void iinit(); void ilock(struct inode*); void iput(struct inode*); void iunlock(struct inode*); @@ -64,7 +64,7 @@ void kfree(void *); void kinit(); // log.c -void initlog(int dev); +void initlog(int, struct superblock*); void log_write(struct buf*); void begin_op(); void end_op(); -- cgit v1.2.3