diff options
author | kib <kib@FreeBSD.org> | 2015-07-30 18:28:34 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-07-30 18:28:34 +0000 |
commit | 34996cf7cdfd83f387f03c0079faad2bd83f1aa1 (patch) | |
tree | 5235a2c75d4d703020641f6bfea60568733d30e5 /sys/vm/vm_map.h | |
parent | dbb8ff8d3fdb64b14ad2eafb2db0583c8ce95527 (diff) | |
download | FreeBSD-src-34996cf7cdfd83f387f03c0079faad2bd83f1aa1.zip FreeBSD-src-34996cf7cdfd83f387f03c0079faad2bd83f1aa1.tar.gz |
Do not pretend that vm_fault(9) supports unwiring the address. Rename
the VM_FAULT_CHANGE_WIRING flag to VM_FAULT_WIRE. Assert that the
flag is only passed when faulting on the wired map entry. Remove the
vm_page_unwire() call, which should be never reachable.
Since VM_FAULT_WIRE flag implies wired map entry, the TRYPAGER() macro
is reduced to the testing of the fs.object having a default pager.
Inline the check.
Suggested and reviewed by: alc
Tested by: pho (previous version)
MFC after: 1 week
Diffstat (limited to 'sys/vm/vm_map.h')
-rw-r--r-- | sys/vm/vm_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 3bf7a67..2c0a4ad 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -326,9 +326,9 @@ long vmspace_resident_count(struct vmspace *vmspace); /* * vm_fault option flags */ -#define VM_FAULT_NORMAL 0 /* Nothing special */ -#define VM_FAULT_CHANGE_WIRING 1 /* Change the wiring as appropriate */ -#define VM_FAULT_DIRTY 2 /* Dirty the page; use w/VM_PROT_COPY */ +#define VM_FAULT_NORMAL 0 /* Nothing special */ +#define VM_FAULT_WIRE 1 /* Wire the mapped page */ +#define VM_FAULT_DIRTY 2 /* Dirty the page; use w/VM_PROT_COPY */ /* * Initially, mappings are slightly sequential. The maximum window size must |