summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-05-06 05:03:23 +0000
committeralc <alc@FreeBSD.org>2004-05-06 05:03:23 +0000
commitb57e5e03fd70fac20a610e56ad7729e47f198a33 (patch)
tree14ae6e4ab50ff0759faf5365c3a928333e1b9c90 /sys/vm/vm_fault.c
parented742a54c4d82222ed831fc8e7321cf7149ed8ed (diff)
downloadFreeBSD-src-b57e5e03fd70fac20a610e56ad7729e47f198a33.zip
FreeBSD-src-b57e5e03fd70fac20a610e56ad7729e47f198a33.tar.gz
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@
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index fded099..000e2a2 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -898,7 +898,6 @@ readrest:
}
mtx_unlock(&Giant);
vm_page_lock_queues();
- vm_page_flag_clear(fs.m, PG_ZERO);
vm_page_flag_set(fs.m, PG_REFERENCED);
/*
OpenPOWER on IntegriCloud