update Cache/

git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@368 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock
2011-02-28 05:00:21 +00:00
parent 68a7851f33
commit c7c4f13bf7
3 changed files with 8 additions and 3 deletions

View File

@@ -51,7 +51,8 @@ void BlockCache::read(unsigned block, void *bp)
BlockCachePointer BlockCache::Create(BlockDevicePointer device)
{
if (!device.get()) return BlockCachePointer();
// this just calls the device virtual function to create a cache.
if (!device) return BlockCachePointer();
return device->createBlockCache();
}