svn commit: r304054 - head/sys/vm
Mark Johnston
markj at FreeBSD.org
Sat Aug 13 19:49:34 UTC 2016
Author: markj
Date: Sat Aug 13 19:49:32 2016
New Revision: 304054
URL: https://svnweb.freebsd.org/changeset/base/304054
Log:
Strengthen assertions about the busy state of newly-allocated pages.
Reviewed by: alc
MFC after: 1 week
Modified:
head/sys/vm/vm_page.c
Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c Sat Aug 13 19:48:43 2016 (r304053)
+++ head/sys/vm/vm_page.c Sat Aug 13 19:49:32 2016 (r304054)
@@ -1712,8 +1712,7 @@ vm_page_alloc(vm_object_t object, vm_pin
("vm_page_alloc: page %p has unexpected queue %d", m, m->queue));
KASSERT(m->wire_count == 0, ("vm_page_alloc: page %p is wired", m));
KASSERT(m->hold_count == 0, ("vm_page_alloc: page %p is held", m));
- KASSERT(!vm_page_sbusied(m),
- ("vm_page_alloc: page %p is busy", m));
+ KASSERT(!vm_page_busied(m), ("vm_page_alloc: page %p is busy", m));
KASSERT(m->dirty == 0, ("vm_page_alloc: page %p is dirty", m));
KASSERT(pmap_page_get_memattr(m) == VM_MEMATTR_DEFAULT,
("vm_page_alloc: page %p has unexpected memattr %d", m,
@@ -2021,7 +2020,7 @@ vm_page_alloc_init(vm_page_t m)
("vm_page_alloc_init: page %p is wired", m));
KASSERT(m->hold_count == 0,
("vm_page_alloc_init: page %p is held", m));
- KASSERT(!vm_page_sbusied(m),
+ KASSERT(!vm_page_busied(m),
("vm_page_alloc_init: page %p is busy", m));
KASSERT(m->dirty == 0,
("vm_page_alloc_init: page %p is dirty", m));
More information about the svn-src-head
mailing list