Show
Ignore:
Timestamp:
07/09/08 15:26:36 (5 months ago)
Author:
mwhitworth
Message:

Add to journal code. Support for per-journal threads, flushing of metadata, and start of commit code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/fs/fs/journal/init.c

    r756 r759  
    2828struct Cache* journalCache=NULL, *journHandleCache=NULL, *journTransCache=NULL; 
    2929 
    30 static void JournalCommitter() 
    31 { 
    32         ThrSetPriority(currThread, 1); 
    33  
    34         while (1) 
    35         { 
    36                 ThrSuspendThread(currThread); 
    37                 ThrSchedule(); 
    38  
    39                 KePrint("JournalCommitter was woken up\n"); 
    40         } 
    41 } 
    42  
    4330int JournalInit() 
    4431{ 
     
    5037                sizeof(struct JournalTrans), NULL, NULL, 0); 
    5138 
    52         journalCommitter=ThrCreateKernelThread(JournalCommitter); 
    53  
    5439        return 0; 
    5540}