1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

Call vm_page_unmanage() on pages belonging to the kmem_object. This

eliminates the unnecessary overhead of managing "PV" entries for these
pages.
This commit is contained in:
Alan Cox 2003-09-14 02:37:59 +00:00
parent 2049fdeefd
commit 30bb12a4e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120050

View File

@ -409,6 +409,7 @@ kmem_malloc(map, size, flags)
vm_page_lock_queues();
vm_page_flag_clear(m, PG_ZERO);
m->valid = VM_PAGE_BITS_ALL;
vm_page_unmanage(m);
vm_page_unlock_queues();
}
VM_OBJECT_UNLOCK(kmem_object);