ramfs: Check for errors when increasing file sizes.
Fixes the first KDL in #19583.
This commit is contained in:
@@ -151,7 +151,9 @@ DataContainer::Resize(off_t newSize)
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
AutoLocker<VMCache> _(fCache);
|
AutoLocker<VMCache> _(fCache);
|
||||||
fCache->Resize(newSize, VM_PRIORITY_USER);
|
error = fCache->Resize(newSize, VM_PRIORITY_USER);
|
||||||
|
if (error != B_OK)
|
||||||
|
return error;
|
||||||
|
|
||||||
// pages will be added as they are written to; so nothing else
|
// pages will be added as they are written to; so nothing else
|
||||||
// needs to be done here.
|
// needs to be done here.
|
||||||
|
|||||||
Reference in New Issue
Block a user