Changeset 792 for Whitix/branches
- Timestamp:
- 07/13/08 20:48:38 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/fs/vfs/bcache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/vfs/bcache.c
r773 r792 72 72 } 73 73 74 SYMBOL_EXPORT(BufferLock); 75 74 76 /*********************************************************************** 75 77 * … … 89 91 WakeUp(&buffer->waitQueue); 90 92 } 93 94 SYMBOL_EXPORT(BufferUnlock); 91 95 92 96 static void BufferWait(struct Buffer* buffer) … … 122 126 BufferWait(buffer); 123 127 } 128 129 SYMBOL_EXPORT(WaitForBuffer); 124 130 125 131 /*********************************************************************** … … 149 155 buff->data=(BYTE*)malloc(device->softBlockSize); 150 156 if (!buff->data) 157 { 158 MemCacheFree(blockCache, buff); 151 159 return NULL; 160 } 152 161 153 162 INIT_WAITQUEUE_HEAD(&buff->waitQueue); … … 157 166 return buff; 158 167 } 168 169 SYMBOL_EXPORT(BlockBufferAlloc); 159 170 160 171 /*********************************************************************** … … 306 317 StorageDoRequest(device,request); 307 318 } 319 320 /* TODO: device is redundant here. */ 308 321 309 322 int BlockWrite(struct StorageDevice* device,struct Buffer* buffer)