Changeset 1959 for Whitix/tags

Show
Ignore:
Timestamp:
02/28/09 16:06:53 (3 years ago)
Author:
mwhitworth
Message:

Replace preempt disable with ListForEachEntrySafe.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/tags/0.2b/fs/vfs/super.c

    r1904 r1959  
    104104        struct VNode* mountNode=NULL,*deviceNode=NULL; 
    105105        struct StorageDevice* sDevice=NULL; 
    106         struct FileSystem* curr; 
     106        struct FileSystem* curr, *curr2; 
    107107        int err; 
    108108        struct VfsSuperBlock* superBlock=NULL; 
     
    146146                return err; 
    147147                 
    148         SpinLock(&fsListLock); 
    149  
    150148        /* Now cycle through each superblock and read */ 
    151         ListForEachEntry(curr,&fsList,list) 
     149        ListForEachEntrySafe(curr,curr2, &fsList,list) 
    152150        { 
    153151                /* If we are given a filesystem name, check that the names match */ 
     
    159157                        break; 
    160158        } 
    161          
    162         SpinUnlock(&fsListLock); 
    163159 
    164160        if (!superBlock)