Call vm_pageq_remove_nowakeup() rather than duplicating it.

This commit is contained in:
Alan Cox 2002-03-03 22:36:14 +00:00
parent 5a4f147089
commit 64190c7a2f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91605

View File

@ -215,18 +215,13 @@ contigmalloc1(
}
for (i = start; i < (start + size / PAGE_SIZE); i++) {
int pqtype;
vm_page_t m = &pga[i];
pqtype = m->queue - m->pc;
if (pqtype == PQ_CACHE) {
if ((m->queue - m->pc) == PQ_CACHE) {
vm_page_busy(m);
vm_page_free(m);
}
TAILQ_REMOVE(&vm_page_queues[m->queue].pl, m, pageq);
vm_page_queues[m->queue].lcnt--;
cnt.v_free_count--;
vm_pageq_remove_nowakeup(m);
m->valid = VM_PAGE_BITS_ALL;
if (m->flags & PG_ZERO)
vm_page_zero_count--;
@ -234,7 +229,6 @@ contigmalloc1(
KASSERT(m->dirty == 0, ("contigmalloc1: page %p was dirty", m));
m->wire_count = 0;
m->busy = 0;
m->queue = PQ_NONE;
m->object = NULL;
}