Changeset 798
- Timestamp:
- 07/14/08 20:32:53 (2 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/fs/journal/transaction.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/journal/transaction.c
r789 r798 77 77 if (numBlocks > journal->maxTransactionBuffers) 78 78 { 79 KePrint(KERN_INFO "Journal StartHandle: handle wants too many credits (%d, "79 KePrint(KERN_INFO "JournalHandleStart: handle wants too many credits (%d, " 80 80 "%d)\n", numBlocks, journal->maxTransactionBuffers); 81 81 return -ENOSPC; … … 140 140 return handle; 141 141 } 142 143 JournalLock(journal); 142 144 143 145 handle=JournalHandleAllocate(numBlocks); … … 145 147 ret=JournalHandleStart(journal, handle); 146 148 149 JournalUnlock(journal); 150 147 151 if (ret) 148 152 { … … 202 206 203 207 if (!head) 204 {205 KePrint("JournalFileBuffer: head = NULL\n");206 208 return; 207 }208 209 209 210 /* Already filed? */ 210 211 if (head->transaction && head->list == type) 211 212 return; 213 214 PreemptDisable(); 212 215 213 216 /* … … 216 219 */ 217 220 218 if (head->transaction == trans && head->list > 0 && head->list != type)221 if (head->transaction) 219 222 JournalUnfileBuffer(head); 220 223 else … … 254 257 ListAddTail(&head->next, list); 255 258 head->list=type; 259 260 PreemptEnable(); 256 261 } 257 262 … … 281 286 { 282 287 JournalUnlock(journal); 283 //KePrint("shadow wait, %#X, %u\n", head, JournHeadToBuffer(head)->blockNum);288 KePrint("shadow wait, %#X, %u\n", head, JournHeadToBuffer(head)->blockNum); 284 289 WAIT_ON(head->wait, head->list != JOURN_SHADOW); 285 290 JournalLock(journal);
