mirror of
https://github.com/ksherlock/profuse.git
synced 2026-04-19 07:21:23 +00:00
this to smart_ptr
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@343 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -233,9 +233,9 @@ void BlockDevice::sync(TrackSector ts)
|
||||
}
|
||||
*/
|
||||
|
||||
BlockCachePointer BlockDevice::createBlockCache(BlockDevicePointer device)
|
||||
BlockCachePointer BlockDevice::createBlockCache()
|
||||
{
|
||||
unsigned b = blocks();
|
||||
unsigned size = std::max(16u, b / 16);
|
||||
return BlockCachePointer(new ConcreteBlockCache(device, size));
|
||||
return BlockCachePointer(new ConcreteBlockCache(shared_from_this(), size));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user