diff options
author | alc <alc@FreeBSD.org> | 2010-04-17 17:02:17 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-04-17 17:02:17 +0000 |
commit | 06e8a2d9cc07fd9f1ac05866b936f2e78cc458ec (patch) | |
tree | 6f28bead74e9494fb790ce0200895ccaf9561aea /lib/libc/stdlib/heapsort.c | |
parent | e3a8d034ba069ba5a7dad2818a3994f2e52c5dff (diff) | |
download | FreeBSD-src-06e8a2d9cc07fd9f1ac05866b936f2e78cc458ec.zip FreeBSD-src-06e8a2d9cc07fd9f1ac05866b936f2e78cc458ec.tar.gz |
Setting PG_REFERENCED on the requested page in swap_pager_getpages() is
either redundant or harmful, depending on the caller. For example, when
called by vm_fault(), it is redundant. However, when called by
vm_thread_swapin(), it is harmful. Specifically, if the thread is later
swapped out, having PG_REFERENCED set on its stack pages leads the page
daemon to reactivate these stack pages and delay their reclamation.
Reviewed by: kib
MFC after: 3 weeks
Diffstat (limited to 'lib/libc/stdlib/heapsort.c')
0 files changed, 0 insertions, 0 deletions