kernel/vm: Default AcquireUnreferencedStoreRef() to B_ERROR.

We shouldn't return B_OK here, because then the page writer will
assume it's acquired a store ref and can write pages from this
cache, when of course it's done nothing of the sort.
This commit is contained in:
Augustin Cavalier 2024-12-16 23:29:46 -05:00
parent f69d8200cd
commit 1ad6193d82

View File

@ -1418,7 +1418,7 @@ VMCache::Merge(VMCache* source)
status_t
VMCache::AcquireUnreferencedStoreRef()
{
return B_OK;
return B_ERROR;
}