Re: uvm_pagedequeue()

2022-05-12 Thread Martin Pieuchot
-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

Re: uvm_pagedequeue()

2022-05-10 Thread Mark Kettenis
active--; > > - } > > - if (pg->pg_flags & PQ_INACTIVE) { > > - TAILQ_REMOVE(&uvm.page_inactive, pg, pageq); > > - flags_to_clear |= PQ_INACTIVE; > > - uvmexp.inactive--; > > - } > > + uvm_pagedequeue(pg); > > > > /* > &

Re: uvm_pagedequeue()

2022-05-10 Thread Martin Pieuchot
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

uvm_pagedequeue()

2022-05-05 Thread Martin Pieuchot
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) { -