svn commit: r288274 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sat Sep 26 17:45:11 UTC 2015
Author: alc
Date: Sat Sep 26 17:45:10 2015
New Revision: 288274
URL: https://svnweb.freebsd.org/changeset/base/288274
Log:
Exploit r288122 to address a cosmetic issue. Since the pages allocated
by noobj_alloc() don't belong to a vm object, they can't be paged out.
Since they can't be paged out, they are never enqueued in a paging queue.
Nonetheless, passing PQ_INACTIVE to vm_page_unwire() creates the appearance
that these pages are being enqueued in the inactive queue. As of r288122,
we can avoid giving this false impression by passing PQ_NONE.
Submitted by: kmacy
Differential Revision: https://reviews.freebsd.org/D1674
Modified:
head/sys/vm/uma_core.c
Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c Sat Sep 26 16:48:25 2015 (r288273)
+++ head/sys/vm/uma_core.c Sat Sep 26 17:45:10 2015 (r288274)
@@ -1153,7 +1153,7 @@ noobj_alloc(uma_zone_t zone, vm_size_t b
* exit.
*/
TAILQ_FOREACH_SAFE(p, &alloctail, listq, p_next) {
- vm_page_unwire(p, PQ_INACTIVE);
+ vm_page_unwire(p, PQ_NONE);
vm_page_free(p);
}
return (NULL);
More information about the svn-src-all
mailing list