From d30afc0ec38415711bc30130e9412a6026468e8b Mon Sep 17 00:00:00 2001 From: Ariane van der Steldt Date: Mon, 1 Jun 2009 17:42:34 +0000 Subject: physmem allocator: change the view of free memory from single free pages to free ranges. Classify memory based on region with associated use-counter (which is used to construct a priority list of where to allocate memory). Based on code from tedu@, help from many. Ok art@ --- sys/uvm/uvm_vnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/uvm/uvm_vnode.c') diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index 0ea3b01d07a..2e4870b745d 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_vnode.c,v 1.58 2009/05/23 14:06:37 oga Exp $ */ +/* $OpenBSD: uvm_vnode.c,v 1.59 2009/06/01 17:42:33 ariane Exp $ */ /* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */ /* @@ -561,7 +561,7 @@ uvm_vnp_terminate(struct vnode *vp) while (uvn->u_obj.uo_npages) { #ifdef DEBUG struct vm_page *pp; - TAILQ_FOREACH(pp, &uvn->u_obj.memq, listq) { + TAILQ_FOREACH(pp, &uvn->u_obj.memq, fq.queues.listq) { if ((pp->pg_flags & PG_BUSY) == 0) panic("uvm_vnp_terminate: detected unbusy pg"); } -- cgit v1.2.3