Date: Fri, 9 Dec 2016 21:21:24 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309772 - head/sys/vm Message-ID: <201612092121.uB9LLO3E072942@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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]));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612092121.uB9LLO3E072942>