Author: glebius Date: Fri Dec 9 21:21:24 2016 New Revision: 309772 URL: https://svnweb.freebsd.org/changeset/base/309772
Log: Allow bogus_page to be passed to pager(s). Modified: head/sys/vm/vm_pager.c Modified: head/sys/vm/vm_pager.c ============================================================================== --- head/sys/vm/vm_pager.c Fri Dec 9 21:17:40 2016 (r309771) +++ head/sys/vm/vm_pager.c Fri Dec 9 21:21:24 2016 (r309772) @@ -84,6 +84,8 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_pager.h> #include <vm/vm_extern.h> +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, v * 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])); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"