summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-04-17 02:23:57 +0000
committeralc <alc@FreeBSD.org>2002-04-17 02:23:57 +0000
commit49bc4331bdcc7e1dfd902339a11b7696afa4b34c (patch)
tree00e6b9a97941ea1392fe0cc08d6e1f249fb970cb
parent6281c9a4f4834b95c8ec9054940ce62ee7d54dc2 (diff)
downloadFreeBSD-src-49bc4331bdcc7e1dfd902339a11b7696afa4b34c.zip
FreeBSD-src-49bc4331bdcc7e1dfd902339a11b7696afa4b34c.tar.gz
Remove an unused option, VM_FAULT_HOLD, to vm_fault().
-rw-r--r--sys/vm/vm_fault.c2
-rw-r--r--sys/vm/vm_map.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 3466360..81f89f5 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -844,8 +844,6 @@ readrest:
}
vm_page_flag_clear(fs.m, PG_ZERO);
vm_page_flag_set(fs.m, PG_MAPPED|PG_REFERENCED);
- if (fault_flags & VM_FAULT_HOLD)
- vm_page_hold(fs.m);
/*
* If the page is not wired down, then put it where the pageout daemon
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h
index eefff35..dd997d5 100644
--- a/sys/vm/vm_map.h
+++ b/sys/vm/vm_map.h
@@ -255,7 +255,6 @@ long vmspace_resident_count(struct vmspace *vmspace);
#define VM_FAULT_CHANGE_WIRING 1 /* Change the wiring as appropriate */
#define VM_FAULT_USER_WIRE 2 /* Likewise, but for user purposes */
#define VM_FAULT_WIRE_MASK (VM_FAULT_CHANGE_WIRING|VM_FAULT_USER_WIRE)
-#define VM_FAULT_HOLD 4 /* Hold the page */
#define VM_FAULT_DIRTY 8 /* Dirty the page */
#ifdef _KERNEL
OpenPOWER on IntegriCloud