freebsd-nq/sys/fs
Alan Cox 6bbee8e28a Add a new option, OBJPR_NOTMAPPED, to vm_object_page_remove(). Passing this
option to vm_object_page_remove() asserts that the specified range of pages
is not mapped, or more precisely that none of these pages have any managed
mappings.  Thus, vm_object_page_remove() need not call pmap_remove_all() on
the pages.

This change not only saves time by eliminating pointless calls to
pmap_remove_all(), but it also eliminates an inconsistency in the use of
pmap_remove_all() versus related functions, like pmap_remove_write().  It
eliminates harmless but pointless calls to pmap_remove_all() that were being
performed on PG_UNMANAGED pages.

Update all of the existing assertions on pmap_remove_all() to reflect this
change.

Reviewed by:	kib
2011-06-29 16:40:41 +00:00
..
cd9660
coda
deadfs
devfs
ext2fs
fdescfs
fifofs
hpfs
msdosfs
nfs Fix the new NFSv4 client so that it doesn't fill the cached 2011-06-28 22:52:38 +00:00
nfsclient Fix the new NFSv4 client so that it doesn't fill the cached 2011-06-28 22:52:38 +00:00
nfsserver Fix the new NFSv4 server so that it checks for VREAD_ACL when 2011-06-21 19:58:29 +00:00
ntfs
nullfs
nwfs In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
portalfs
procfs
pseudofs
smbfs In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
tmpfs Add a new option, OBJPR_NOTMAPPED, to vm_object_page_remove(). Passing this 2011-06-29 16:40:41 +00:00
udf
unionfs