summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 74fb29a..236e255 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -86,7 +86,7 @@
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_prot.h>
-#include <vm/lock.h>
+#include <sys/lock.h>
#include <vm/pmap.h>
#include <vm/vm_map.h>
#include <vm/vm_object.h>
@@ -146,6 +146,7 @@ vm_fault(map, vaddr, fault_type, change_wiring)
vm_page_t marray[VM_FAULT_READ];
int hardfault = 0;
struct vnode *vp = NULL;
+ struct proc *p = curproc; /* XXX */
cnt.v_vm_faults++; /* needs lock XXX */
/*
@@ -175,7 +176,7 @@ vm_fault(map, vaddr, fault_type, change_wiring)
vm_object_pip_wakeup(first_object); \
} \
UNLOCK_MAP; \
- if (vp != NULL) VOP_UNLOCK(vp); \
+ if (vp != NULL) VOP_UNLOCK(vp, 0, p); \
}
#define UNLOCK_AND_DEALLOCATE { \
OpenPOWER on IntegriCloud