freebsd-dev/sys/mips
Mark Johnston eeacb3b02f 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
..
atheros Display CPU model in dmesg on mips targets 2019-05-24 01:43:35 +00:00
beri Add SMP support for BERI CPU. 2018-04-12 17:43:19 +00:00
broadcom add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
cavium octusb: fix detach loop over USB ports 2019-06-01 18:19:16 +00:00
conf Add support for extended descriptor format to Altera mSGDMA driver. 2019-06-27 18:08:18 +00:00
include mips: Implement basic pmap_kenter_device, pmap_kremove_device 2019-05-16 19:10:48 +00:00
ingenic Implement missing MMCBR ivars 2019-07-04 14:15:04 +00:00
malta add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00
mediatek sys: Remove DEV_RANDOM device option 2019-06-21 00:16:30 +00:00
mips Merge the vm_page hold and wire mechanisms. 2019-07-08 19:46:20 +00:00
nlm [mips] Fix error condition check that always evaluates to false 2019-01-25 20:14:28 +00:00