mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
vmmcache: redo how vnode locking is expected
This commit is contained in:
+1
-2
@@ -581,9 +581,8 @@ bool vmm_pagefault(void *addr, bool user, int actions) {
|
||||
} else {
|
||||
// cacheable vnode
|
||||
page_t *res = NULL;
|
||||
VOP_LOCK(range->vnode);
|
||||
int error = vmmcache_getpage(range->vnode, range->offset + mapoffset, &res);
|
||||
VOP_UNLOCK(range->vnode);
|
||||
|
||||
if (error == ENXIO || error == ENOMEM) {
|
||||
if (error == ENOMEM)
|
||||
printf("vmm: out of memory to handle getpage (sending SIGBUS)\n");
|
||||
|
||||
Reference in New Issue
Block a user