Changeset 778 for Whitix/trunk/fs/vfs/bcache.c
- Timestamp:
- 07/11/08 12:23:03 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/trunk/fs/vfs/bcache.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/fs/vfs/bcache.c
r777 r778 472 472 { 473 473 struct ListHead* head=BUFFER_HASH(device, blockNum); 474 struct Buffer* curr , *ret=NULL;474 struct Buffer* curr; 475 475 476 476 PreemptDisable(); … … 480 480 { 481 481 BufferGet(curr); 482 PreemptEnable(); /* As WaitForBuffer may sleep. */ 482 483 WaitForBuffer(curr); 483 ret=curr; 484 goto out; 484 return curr; 485 485 } 486 486 487 out:488 487 PreemptEnable(); 489 return ret;488 return NULL; 490 489 } 491 490