diff options
-rw-r--r-- | log.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -38,14 +38,15 @@ struct logheader { int sector[LOGSIZE]; }; -struct { +struct log { struct spinlock lock; int start; int size; int intrans; int dev; struct logheader lh; -} log; +}; +struct log log; static void recover_from_log(void); |