kernel/vm: Add assertion for a TODO in SetMinimalCommitment.
This commit is contained in:
@@ -1092,8 +1092,7 @@ VMCache::SetMinimalCommitment(off_t commitment, int priority)
|
|||||||
// If we don't have enough committed space to cover through to the new end
|
// If we don't have enough committed space to cover through to the new end
|
||||||
// of the area...
|
// of the area...
|
||||||
if (committed_size < commitment) {
|
if (committed_size < commitment) {
|
||||||
// ToDo: should we check if the cache's virtual size is large
|
ASSERT(commitment <= ROUNDUP(virtual_end - virtual_base, B_PAGE_SIZE));
|
||||||
// enough for a commitment of that size?
|
|
||||||
|
|
||||||
// try to commit more memory
|
// try to commit more memory
|
||||||
status = Commit(commitment, priority);
|
status = Commit(commitment, priority);
|
||||||
|
|||||||
Reference in New Issue
Block a user