Allow bogus_page to be passed to pager(s).

This commit is contained in:
Gleb Smirnoff 2016-12-09 21:21:24 +00:00
parent 8c70a35334
commit 255003da42
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309772

View File

@ -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, 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]));