aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-02-10 16:10:27 +0000
committerMark Johnston <markj@FreeBSD.org>2021-02-10 16:10:27 +0000
commit5c18744ea9b94cb6a9a091a900fa4999868736e1 (patch)
treea3c0d4058740af5e061165cf410aae22d2af7b4d /Makefile.libcompat
parent7676b388adbc81a2ad46b43852cd9bc7ac7fad7e (diff)
downloadsrc-5c18744ea9b94cb6a9a091a900fa4999868736e1.tar.gz
src-5c18744ea9b94cb6a9a091a900fa4999868736e1.zip
vm: Honour the "noreuse" flag to vm_page_unwire_managed()
This flag indicates that the page should be enqueued near the head of the inactive queue, skipping the LRU queue. It is used when unwiring pages from the buffer cache following direct I/O or after I/O when POSIX_FADV_NOREUSE or _DONTNEED advice was specified, or when sendfile(SF_NOCACHE) completes. For the direct I/O and sendfile cases we only enqueue the page if we decide not to free it, typically because it's mapped. Pass "noreuse" through to vm_page_release_toq() so that we actually honour the desired LRU policy for these scenarios. Reported by: bdrewery Reviewed by: alc, kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D28555
Diffstat (limited to 'Makefile.libcompat')
0 files changed, 0 insertions, 0 deletions