ramfs: Add missing lock of VMCache in DataContainer.
This commit is contained in:
@@ -299,6 +299,8 @@ DataContainer::_SwitchToCacheMode()
|
|||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
|
AutoLocker<VMCache> locker(cache);
|
||||||
|
|
||||||
fCache = cache;
|
fCache = cache;
|
||||||
fCache->temporary = 1;
|
fCache->temporary = 1;
|
||||||
fCache->unmergeable = 1;
|
fCache->unmergeable = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user