markj 039f74039e Merge the vm_page hold and wire mechanisms.
The hold_count and wire_count fields of struct vm_page are separate
reference counters with similar semantics.  The remaining essential
differences are that holds are not counted as a reference with respect
to LRU, and holds have an implicit free-on-last unhold semantic whereas
vm_page_unwire() callers must explicitly determine whether to free the
page once the last reference to the page is released.

This change removes the KPIs which directly manipulate hold_count.
Functions such as vm_fault_quick_hold_pages() now return wired pages
instead.  Since r328977 the overhead of maintaining LRU for wired pages
is lower, and in many cases vm_fault_quick_hold_pages() callers would
swap holds for wirings on the returned pages anyway, so with this change
we remove a number of page lock acquisitions.

No functional change is intended.  __FreeBSD_version is bumped.

Reviewed by:	alc, kib
Discussed with:	jeff
Discussed with:	jhb, np (cxgbe)
Tested by:	pho (previous version)
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D19247
2019-07-08 19:46:20 +00:00
..
2019-06-18 21:05:10 +00:00
2019-05-07 18:10:21 +00:00
2019-01-27 00:46:06 +00:00
2019-05-20 19:14:07 +00:00
2019-06-24 20:52:21 +00:00
2019-05-30 16:11:20 +00:00
2018-12-05 16:43:03 +00:00
2019-07-02 21:03:06 +00:00
2019-06-03 15:23:37 +00:00
2017-12-13 16:30:39 +00:00
2019-03-12 05:10:41 +00:00
2018-10-12 00:32:45 +00:00
2018-08-18 19:45:56 +00:00
2018-06-01 13:26:45 +00:00
2019-02-20 09:38:19 +00:00
2019-06-19 13:30:50 +00:00
2018-11-20 14:58:41 +00:00
2019-05-07 18:10:21 +00:00
2019-05-07 18:10:21 +00:00
2018-06-01 13:26:45 +00:00
2019-06-20 13:59:46 +00:00
2018-10-23 21:43:41 +00:00