1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

When a cached page is reactivated in vm_fault(), update the counter that

tracks the total number of reactivated pages.  (We have not been
counting reactivations by vm_fault() since revision 1.46.)

Correct a comment in vm_fault_additional_pages().

Approved by:	re (kensmith)
MFC after:	1 week
This commit is contained in:
Alan Cox 2007-07-06 21:25:21 +00:00
parent f1d2cc831c
commit 65ea29a690
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171288

View File

@ -402,13 +402,15 @@ RetryFault:;
vm_pageq_remove_nowakeup(fs.m); vm_pageq_remove_nowakeup(fs.m);
if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE && if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE) {
vm_page_count_severe()) { cnt.v_reactivated++;
vm_page_activate(fs.m); if (vm_page_count_severe()) {
vm_page_unlock_queues(); vm_page_activate(fs.m);
unlock_and_deallocate(&fs); vm_page_unlock_queues();
VM_WAITPFAULT; unlock_and_deallocate(&fs);
goto RetryFault; VM_WAITPFAULT;
goto RetryFault;
}
} }
vm_page_unlock_queues(); vm_page_unlock_queues();
@ -1335,6 +1337,6 @@ vm_fault_additional_pages(m, rbehind, rahead, marray, reqpage)
marray[i] = rtm; marray[i] = rtm;
} }
/* return number of bytes of pages */ /* return number of pages */
return i; return i;
} }