summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_io.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/fs/smbfs/smbfs_io.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/fs/smbfs/smbfs_io.c')
-rw-r--r--sys/fs/smbfs/smbfs_io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c
index 5a0606c..6a1ea45 100644
--- a/sys/fs/smbfs/smbfs_io.c
+++ b/sys/fs/smbfs/smbfs_io.c
@@ -517,8 +517,6 @@ smbfs_getpages(ap)
nextoff = toff + PAGE_SIZE;
m = pages[i];
- m->flags &= ~PG_ZERO;
-
if (nextoff <= size) {
/*
* Read operation filled an entire page
OpenPOWER on IntegriCloud