git-svn-id: https://profuse.googlecode.com/svn/branches/v2@222 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock
2010-05-18 21:26:07 +00:00
parent 699a6e02fb
commit 22afe5d128
12 changed files with 30 additions and 25 deletions

View File

@@ -55,7 +55,9 @@ void BlockDevice::sync(TrackSector ts)
}
BlockCache *BlockDevice::createBlockCache(unsigned size)
BlockCache *BlockDevice::createBlockCache()
{
unsigned b = blocks();
unsigned size = std::max(16u, b / 16);
return new ConcreteBlockCache(this, size);
}