mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +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:
parent
f1d2cc831c
commit
65ea29a690
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171288
@ -402,13 +402,15 @@ RetryFault:;
|
||||
|
||||
vm_pageq_remove_nowakeup(fs.m);
|
||||
|
||||
if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE &&
|
||||
vm_page_count_severe()) {
|
||||
vm_page_activate(fs.m);
|
||||
vm_page_unlock_queues();
|
||||
unlock_and_deallocate(&fs);
|
||||
VM_WAITPFAULT;
|
||||
goto RetryFault;
|
||||
if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE) {
|
||||
cnt.v_reactivated++;
|
||||
if (vm_page_count_severe()) {
|
||||
vm_page_activate(fs.m);
|
||||
vm_page_unlock_queues();
|
||||
unlock_and_deallocate(&fs);
|
||||
VM_WAITPFAULT;
|
||||
goto RetryFault;
|
||||
}
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
|
||||
@ -1335,6 +1337,6 @@ vm_fault_additional_pages(m, rbehind, rahead, marray, reqpage)
|
||||
marray[i] = rtm;
|
||||
}
|
||||
|
||||
/* return number of bytes of pages */
|
||||
/* return number of pages */
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user