Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106130817
D17367.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D17367.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17367: Eliminate pointless calls to vm_fault_prefault()
Attached
Detach File
Event Timeline
Log In to Comment