From 694a0fec54fde4e12d3f4518ab730dfa5ac72578 Mon Sep 17 00:00:00 2001 From: enami Date: Wed, 15 May 2002 00:19:12 +0000 Subject: [PATCH] When loaned page become ownerless as a result of freeing, it should be dequeue'ed from pageq. Fix provided by chuq. --- sys/uvm/uvm_page.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 29105efd1271..260c1ebd5221 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.c,v 1.74 2002/02/20 07:06:56 enami Exp $ */ +/* $NetBSD: uvm_page.c,v 1.75 2002/05/15 00:19:12 enami Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.74 2002/02/20 07:06:56 enami Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.75 2002/05/15 00:19:12 enami Exp $"); #include "opt_uvmhist.h" @@ -1245,6 +1245,7 @@ uvm_pagefree(pg) pg->owner_tag = NULL; #endif if (pg->loan_count) { + uvm_pagedequeue(pg); return; } }