1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Reduce the amount of detail printed by vm_page_free_toq() when it panics.

Reviewed by:	kib
This commit is contained in:
Alan Cox 2010-11-19 17:49:08 +00:00
parent 3c22a809ec
commit 00f8bffc22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215538

View File

@ -1663,16 +1663,10 @@ vm_page_free_toq(vm_page_t m)
} }
PCPU_INC(cnt.v_tfree); PCPU_INC(cnt.v_tfree);
if (m->busy || VM_PAGE_IS_FREE(m)) { if (VM_PAGE_IS_FREE(m))
printf( panic("vm_page_free: freeing free page %p", m);
"vm_page_free: pindex(%lu), busy(%d), VPO_BUSY(%d), hold(%d)\n", else if (m->busy != 0)
(u_long)m->pindex, m->busy, (m->oflags & VPO_BUSY) ? 1 : 0, panic("vm_page_free: freeing busy page %p", m);
m->hold_count);
if (VM_PAGE_IS_FREE(m))
panic("vm_page_free: freeing free page");
else
panic("vm_page_free: freeing busy page");
}
/* /*
* unqueue, then remove page. Note that we cannot destroy * unqueue, then remove page. Note that we cannot destroy
@ -1695,13 +1689,8 @@ vm_page_free_toq(vm_page_t m)
m->valid = 0; m->valid = 0;
vm_page_undirty(m); vm_page_undirty(m);
if (m->wire_count != 0) { if (m->wire_count != 0)
if (m->wire_count > 1) { panic("vm_page_free: freeing wired page %p", m);
panic("vm_page_free: invalid wire count (%d), pindex: 0x%lx",
m->wire_count, (long)m->pindex);
}
panic("vm_page_free: freeing wired page");
}
if (m->hold_count != 0) { if (m->hold_count != 0) {
m->flags &= ~PG_ZERO; m->flags &= ~PG_ZERO;
vm_page_lock_queues(); vm_page_lock_queues();