-987,16 +987,7 @@ uvm_pageclean(struct vm_page *pg)
> > > /*
> > >* now remove the page from the queues
> > >*/
> > > - if (pg->pg_flags & PQ_ACTIVE) {
> > > - TAILQ_REMOVE(&uvm.page_active, pg, pageq);
> > > - flags_to_c
active--;
> > - }
> > - if (pg->pg_flags & PQ_INACTIVE) {
> > - TAILQ_REMOVE(&uvm.page_inactive, pg, pageq);
> > - flags_to_clear |= PQ_INACTIVE;
> > - uvmexp.inactive--;
> > - }
> > + uvm_pagedequeue(pg);
> >
> > /*
> &
s & PQ_INACTIVE) {
> - TAILQ_REMOVE(&uvm.page_inactive, pg, pageq);
> - flags_to_clear |= PQ_INACTIVE;
> - uvmexp.inactive--;
> - }
> + uvm_pagedequeue(pg);
>
> /*
>* if the page was wired, unwire it now.
> @@ -1243,16 +1234,7 @@ u
uvmexp.inactive--;
- }
+ uvm_pagedequeue(pg);
/*
* if the page was wired, unwire it now.
@@ -1243,16 +1234,7 @@ uvm_pagewire(struct vm_page *pg)
MUTEX_ASSERT_LOCKED(&uvm.pageqlock);
if (pg->wire_count == 0) {
-