kernel/vm: Add ASSERT_UNREACHABLE() in VMCache::Commit.

This should never be invoked; only derived-class implementations
should be.
This commit is contained in:
Augustin Cavalier 2024-10-02 16:09:17 -04:00
parent b11cc78c16
commit d3b93408f1

View File

@ -1297,8 +1297,8 @@ VMCache::FlushAndRemoveAllPages()
status_t
VMCache::Commit(off_t size, int priority)
{
committed_size = size;
return B_OK;
ASSERT_UNREACHABLE();
return B_NOT_SUPPORTED;
}