diff options
author | Alan Cox <alc@FreeBSD.org> | 2012-04-08 18:25:12 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2012-04-08 18:25:12 +0000 |
commit | 1c8279e4e79322bdc17b351578815f738c37ac83 (patch) | |
tree | 8731002f4357a7b84f7a2526f70c9a6d8604747f /sys/vm/vm_mmap.c | |
parent | 908e3da10ede5e50b854ccbcfb133279e2e4f993 (diff) | |
download | src-1c8279e4e79322bdc17b351578815f738c37ac83.tar.gz src-1c8279e4e79322bdc17b351578815f738c37ac83.zip |
Fix mincore(2) so that it reports PG_CACHED pages as resident.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=234039
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r-- | sys/vm/vm_mmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index d9b151665ce3..2588c8573728 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -888,6 +888,9 @@ RestartScan: pindex = OFF_TO_IDX(current->offset + (addr - current->start)); m = vm_page_lookup(object, pindex); + if (m == NULL && + vm_page_is_cached(object, pindex)) + mincoreinfo = MINCORE_INCORE; if (m != NULL && m->valid == 0) m = NULL; if (m != NULL) |