Show
Ignore:
Timestamp:
07/08/08 18:16:50 (5 months ago)
Author:
mwhitworth
Message:

Add to journal code.

Files:
1 modified

Legend:

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

    r751 r756  
    2626struct Thread* journalCommitter=NULL; 
    2727 
    28 struct Cache* journalCache=NULL; 
     28struct Cache* journalCache=NULL, *journHandleCache=NULL, *journTransCache=NULL; 
    2929 
    3030static void JournalCommitter() 
     
    4545        /* Init caches. */ 
    4646        journalCache=MemCacheCreate("Journal cache", sizeof(struct Journal), NULL, NULL, 0); 
     47        journHandleCache=MemCacheCreate("Journal handle cache",  
     48                sizeof(struct JournalHandle), NULL, NULL, 0); 
     49        journTransCache=MemCacheCreate("Journal transaction cache", 
     50                sizeof(struct JournalTrans), NULL, NULL, 0); 
    4751 
    4852        journalCommitter=ThrCreateKernelThread(JournalCommitter);