summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-06-16 21:07:51 +0000
committeralc <alc@FreeBSD.org>2007-06-16 21:07:51 +0000
commit011d4e557f1b1c9f7dcf3ebf569f72bbe78d18f3 (patch)
tree6594e7fb3ded70869aa5d95f20bbc42bd7337c93 /sys/vm
parent645eb9cc710d2035d89ec528bd789a2bdedec384 (diff)
downloadFreeBSD-src-011d4e557f1b1c9f7dcf3ebf569f72bbe78d18f3.zip
FreeBSD-src-011d4e557f1b1c9f7dcf3ebf569f72bbe78d18f3.tar.gz
If attempting to cache a "busy", panic instead of printing a diagnostic
message and returning.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index a3c89fc..1d08f7c 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1359,8 +1359,7 @@ vm_page_cache(vm_page_t m)
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
if ((m->flags & PG_UNMANAGED) || (m->oflags & VPO_BUSY) || m->busy ||
m->hold_count || m->wire_count) {
- printf("vm_page_cache: attempting to cache busy page\n");
- return;
+ panic("vm_page_cache: attempting to cache busy page");
}
if (VM_PAGE_INQUEUE1(m, PQ_CACHE))
return;
OpenPOWER on IntegriCloud