diff options
Diffstat (limited to 'fs.c')
-rw-r--r-- | fs.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -13,10 +13,16 @@ // these are inodes currently in use // an entry is free if count == 0 struct inode inode[NINODE]; -struct spinlock inode_table_lock = { "inode_table" }; +struct spinlock inode_table_lock; uint rootdev = 1; +void +iinit(void) +{ + initlock(&inode_table_lock, "inode_table"); +} + static uint balloc(uint dev) { |