MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fault_page_release

Function fault_page_release

freebsd/vm/vm_fault.c:171–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 "the page fault handler");
170
171static inline void
172fault_page_release(vm_page_t *mp)
173{
174 vm_page_t m;
175
176 m = *mp;
177 if (m != NULL) {
178 /*
179 * We are likely to loop around again and attempt to busy
180 * this page. Deactivating it leaves it available for
181 * pageout while optimizing fault restarts.
182 */
183 vm_page_deactivate(m);
184 vm_page_xunbusy(m);
185 *mp = NULL;
186 }
187}
188
189static inline void
190fault_page_free(vm_page_t *mp)

Callers 2

fault_deallocateFunction · 0.85
vm_fault_busy_sleepFunction · 0.85

Calls 1

vm_page_deactivateFunction · 0.85

Tested by

no test coverage detected