Page MenuHomeFreeBSD

D17367.diff
No OneTemporary

D17367.diff

Index: head/sys/vm/vm_fault.c
===================================================================
--- head/sys/vm/vm_fault.c
+++ head/sys/vm/vm_fault.c
@@ -1181,6 +1181,16 @@
*/
vm_object_pip_wakeup(fs.object);
VM_OBJECT_WUNLOCK(fs.object);
+
+ /*
+ * We only try to prefault read-only mappings to the
+ * neighboring pages when this copy-on-write fault is
+ * a hard fault. In other cases, trying to prefault
+ * is typically wasted effort.
+ */
+ if (faultcount == 0)
+ faultcount = 1;
+
/*
* Only use the new page below...
*/

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 10:08 PM (10 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15608237
Default Alt Text
D17367.diff (579 B)

Event Timeline