Define struct log separately from log to avoid confusing column breaker
This commit is contained in:
parent
a14c96f825
commit
ee1b33065c
5
log.c
5
log.c
|
@ -38,14 +38,15 @@ struct logheader {
|
||||||
int sector[LOGSIZE];
|
int sector[LOGSIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct {
|
struct log {
|
||||||
struct spinlock lock;
|
struct spinlock lock;
|
||||||
int start;
|
int start;
|
||||||
int size;
|
int size;
|
||||||
int intrans;
|
int intrans;
|
||||||
int dev;
|
int dev;
|
||||||
struct logheader lh;
|
struct logheader lh;
|
||||||
} log;
|
};
|
||||||
|
struct log log;
|
||||||
|
|
||||||
static void recover_from_log(void);
|
static void recover_from_log(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue