uvm_page_unbusy: add an assertion
This commit is contained in:
parent
ae07703384
commit
20c094eb67
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_page.c,v 1.141 2008/12/13 11:34:43 ad Exp $ */
|
||||
/* $NetBSD: uvm_page.c,v 1.142 2009/01/16 07:01:28 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.141 2008/12/13 11:34:43 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.142 2009/01/16 07:01:28 yamt Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
#include "opt_readahead.h"
|
||||
@ -1514,6 +1514,7 @@ uvm_page_unbusy(struct vm_page **pgs, int npgs)
|
||||
uvm_pagefree(pg);
|
||||
} else {
|
||||
UVMHIST_LOG(ubchist, "unbusying pg %p", pg,0,0,0);
|
||||
KASSERT((pg->flags & PG_FAKE) == 0);
|
||||
pg->flags &= ~(PG_WANTED|PG_BUSY);
|
||||
UVM_PAGE_OWN(pg, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user