Show
Ignore:
Timestamp:
07/11/08 12:23:03 (5 months ago)
Author:
mwhitworth
Message:

Fix preemption code in bcache.c and vcache.c.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/fs/vfs/bcache.c

    r777 r778  
    472472{ 
    473473        struct ListHead* head=BUFFER_HASH(device, blockNum); 
    474         struct Buffer* curr, *ret=NULL; 
     474        struct Buffer* curr; 
    475475 
    476476        PreemptDisable(); 
     
    480480                { 
    481481                        BufferGet(curr); 
     482                        PreemptEnable(); /* As WaitForBuffer may sleep. */ 
    482483                        WaitForBuffer(curr); 
    483                         ret=curr; 
    484                         goto out; 
     484                        return curr; 
    485485                } 
    486486 
    487 out: 
    488487        PreemptEnable(); 
    489         return ret; 
     488        return NULL; 
    490489} 
    491490