diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 87557aef472b..7d2ea2ce802a 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -84,6 +84,8 @@ __FBSDID("$FreeBSD$"); #include #include +extern vm_page_t bogus_page; + int cluster_pbuf_freecnt = -1; /* unlimited to begin with */ struct buf *swbuf; @@ -260,6 +262,8 @@ vm_pager_assert_in(vm_object_t object, vm_page_t *m, int count) * not dirty and belong to the proper object. */ for (int i = 0 ; i < count; i++) { + if (m[i] == bogus_page) + continue; vm_page_assert_xbusied(m[i]); KASSERT(!pmap_page_is_mapped(m[i]), ("%s: page %p is mapped", __func__, m[i]));