Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107135537
D45910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
397 B
Referenced Files
None
Subscribers
None
D45910.diff
View Options
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -947,6 +947,17 @@
return (queue == PQ_LAUNDRY || queue == PQ_UNSWAPPABLE);
}
+static inline void
+vm_page_clearref(vm_page_t m)
+{
+ u_int r;
+
+ r = m->ref_count;
+ while (atomic_fcmpset_int(&m->ref_count, &r, r & (VPRC_BLOCKED |
+ VPRC_OBJREF)) == 0)
+ ;
+}
+
/*
* vm_page_drop:
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:27 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15755540
Default Alt Text
D45910.diff (397 B)
Attached To
Mode
D45910: DMAR pagetable free: handle ref_count special references
Attached
Detach File
Event Timeline
Log In to Comment