summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/setmode.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2017-10-07 17:20:31 +0000
committerLuiz Souza <luiz@netgate.com>2018-02-21 15:14:38 -0300
commit77c23f6c7df09a861b606acaa485ba1ab8883533 (patch)
tree3266ac58ca9f0ed4f85fe6f3eb4c6a8c53936086 /contrib/diff/lib/setmode.h
parent12f2f0718d897b1324f4d7e1a3b6319e21d32a17 (diff)
downloadFreeBSD-src-77c23f6c7df09a861b606acaa485ba1ab8883533.zip
FreeBSD-src-77c23f6c7df09a861b606acaa485ba1ab8883533.tar.gz
MFC r323973,324087
Optimize vm_page_try_to_free(). Specifically, the call to pmap_remove_all() can be avoided when the page's containing object has a reference count of zero. (If the object has a reference count of zero, then none of its pages can possibly be mapped.) Address nearby style issues in vm_page_try_to_free(), and change its return type to "bool". Optimize vm_object_page_remove() by eliminating pointless calls to pmap_remove_all(). If the object to which a page belongs has no references, then that page cannot possibly be mapped. (cherry picked from commit 2d2427db5b735ecdb6fe8ad9251f524b4260bb6a)
Diffstat (limited to 'contrib/diff/lib/setmode.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud