Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145274966
D49521.id152705.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
719 B
Referenced Files
None
Subscribers
None
D49521.id152705.diff
View Options
Index: sys/vm/vm_fault.c
===================================================================
--- sys/vm/vm_fault.c
+++ sys/vm/vm_fault.c
@@ -2199,14 +2199,15 @@
/*
* Allocate a page in the destination object.
*/
- dst_m = vm_page_alloc_after(dst_object, (src_object ==
- dst_object ? src_pindex : 0) + dst_pindex,
+ pindex = (src_object == dst_object) ? src_pindex : 0) + dst_pindex;
+ dst_m = vm_page_alloc_after(dst_object, pindex,
VM_ALLOC_NORMAL, mpred);
if (dst_m == NULL) {
VM_OBJECT_WUNLOCK(dst_object);
VM_OBJECT_RUNLOCK(object);
vm_wait(dst_object);
VM_OBJECT_WLOCK(dst_object);
+ dst_m = vm_page_mpred(src_object, pindex);
goto again;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 9:36 PM (6 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28856904
Default Alt Text
D49521.id152705.diff (719 B)
Attached To
Mode
D49521: vm_fault: update page pred after lock rel/acq in copy_entry
Attached
Detach File
Event Timeline
Log In to Comment