Changeset 805
- Timestamp:
- 07/14/08 20:55:41 (2 months ago)
- Location:
- Whitix/branches/fs/fs/journal
- Files:
-
- 2 modified
-
journals.c (modified) (1 diff)
-
recovery.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/journal/journals.c
r800 r805 164 164 ThrSuspendThread(currThread); 165 165 ThrSchedule(); /* Will return here when the thread is scheduled again */ 166 166 167 TimerRemove(&commitTimer); 167 168 -
Whitix/branches/fs/fs/journal/recovery.c
r797 r805 25 25 #include <wait.h> 26 26 27 #define JournalWrap(journal, pos) \ 28 if ((pos) >= (journal)->maxLength) \ 29 (pos) -= ((journal)->maxLength - (journal)->head) 30 27 31 int JournalCountTags(struct Buffer* buffer, int size) 28 32 { … … 68 72 ioBlock=*logBlock; 69 73 *logBlock=(*logBlock)+1; 70 /* WRAP */74 JournalWrap(journal, *logBlock); 71 75 72 76 /* Read the block of data in the journal */ … … 128 132 129 133 nextLogBlock++; 130 /* WRAP */134 JournalWrap(journal, nextLogBlock); 131 135 132 136 head=(struct JournalHeader*)(buffer->data);
