diff options
author | alc <alc@FreeBSD.org> | 2010-04-17 21:14:37 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-04-17 21:14:37 +0000 |
commit | ae8ea7c78385a57669ed9bb21cfc9a021afd410e (patch) | |
tree | 03c5d80e46d468b03a341854ac7b81a63559256b /lib/libc/stdlib/malloc.c | |
parent | cbed8db2a8ad2fb0abb82dfd7ad4e267456e9eb6 (diff) | |
download | FreeBSD-src-ae8ea7c78385a57669ed9bb21cfc9a021afd410e.zip FreeBSD-src-ae8ea7c78385a57669ed9bb21cfc9a021afd410e.tar.gz |
In vm_object_madvise() setting PG_REFERENCED on a page before sleeping on
that page only makes sense if the advice is MADV_WILLNEED. In that case,
the intention is to activate the page, so discouraging the page daemon
from reclaiming the page makes sense. In contrast, in the other cases,
MADV_DONTNEED and MADV_FREE, it makes no sense whatsoever to discourage
the page daemon from reclaiming the page by setting PG_REFERENCED.
Wrap a nearby line.
Discussed with: kib
MFC after: 3 weeks
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions