mirror of
https://github.com/ksherlock/profuse.git
synced 2026-04-20 14:16:37 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@222 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -52,9 +52,9 @@ void BlockCache::read(unsigned block, void *bp)
|
||||
}
|
||||
|
||||
|
||||
BlockCache *BlockCache::Create(BlockDevice *device, unsigned size = 16)
|
||||
BlockCache *BlockCache::Create(BlockDevice *device)
|
||||
{
|
||||
if (!device) return NULL;
|
||||
|
||||
return device->createBlockCache(size);
|
||||
return device->createBlockCache();
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ enum BlockReleaseFlags {
|
||||
class BlockCache {
|
||||
public:
|
||||
|
||||
BlockCache *Create(BlockDevice *device, unsigned size = 16);
|
||||
static BlockCache *Create(BlockDevice *device);
|
||||
|
||||
virtual ~BlockCache();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user