]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make vm_page's PG_ZERO flag immutable between the time of the page's
authoralc <alc@FreeBSD.org>
Thu, 6 May 2004 05:03:23 +0000 (05:03 +0000)
committeralc <alc@FreeBSD.org>
Thu, 6 May 2004 05:03:23 +0000 (05:03 +0000)
commitb57e5e03fd70fac20a610e56ad7729e47f198a33
tree14ae6e4ab50ff0759faf5365c3a928333e1b9c90
parented742a54c4d82222ed831fc8e7321cf7149ed8ed
Make vm_page's PG_ZERO flag immutable between the time of the page's
allocation and deallocation.  This flag's principal use is shortly after
allocation.  For such cases, clearing the flag is pointless.  The only
unusual use of PG_ZERO is in vfs_bio_clrbuf().  However, allocbuf() never
requests a prezeroed page.  So, vfs_bio_clrbuf() never sees a prezeroed
page.

Reviewed by: tegge@
sys/fs/nwfs/nwfs_io.c
sys/fs/smbfs/smbfs_io.c
sys/fs/specfs/spec_vnops.c
sys/kern/uipc_syscalls.c
sys/kern/vfs_bio.c
sys/nfsclient/nfs_bio.c
sys/vm/swap_pager.c
sys/vm/vm_fault.c
sys/vm/vnode_pager.c