diff options
author | alc <alc@FreeBSD.org> | 2009-11-27 20:24:11 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-11-27 20:24:11 +0000 |
commit | dcb93e6c955b320316982f0c9532ae0b0f8663ea (patch) | |
tree | 9e63971c27f696abb5bbb78d4c260e9f2c8d89a6 /sys/i386 | |
parent | a855bffe7835f373e9b80eba00b37a339bac226e (diff) | |
download | FreeBSD-src-dcb93e6c955b320316982f0c9532ae0b0f8663ea.zip FreeBSD-src-dcb93e6c955b320316982f0c9532ae0b0f8663ea.tar.gz |
Simplify the invocation of vm_fault(). Specifically, eliminate the flag
VM_FAULT_DIRTY. The information provided by this flag can be trivially
inferred by vm_fault().
Discussed with: kib
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/trap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index f8d0ea0..1d3dc3b 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -825,9 +825,7 @@ trap_pfault(frame, usermode, eva) PROC_UNLOCK(p); /* Fault in the user page: */ - rv = vm_fault(map, va, ftype, - (ftype & VM_PROT_WRITE) ? VM_FAULT_DIRTY - : VM_FAULT_NORMAL); + rv = vm_fault(map, va, ftype, VM_FAULT_NORMAL); PROC_LOCK(p); --p->p_lock; |