commit ee1b33065cccc798f502a25d2d741c49a86f63a6
parent a14c96f825bd06030f82cfe05fbebf9d265f40af
Author: Austin Clements <amdragon@mit.edu>
Date: Fri, 2 Sep 2011 15:08:35 -0400
Define struct log separately from log to avoid confusing column breaker
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/log.c b/log.c
@@ -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);