Page MenuHomeFreeBSD

D45910.diff
No OneTemporary

D45910.diff

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

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)

Event Timeline