diff options
author | alc <alc@FreeBSD.org> | 2004-05-06 05:03:23 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-05-06 05:03:23 +0000 |
commit | b57e5e03fd70fac20a610e56ad7729e47f198a33 (patch) | |
tree | 14ae6e4ab50ff0759faf5365c3a928333e1b9c90 /sys/nfsclient/nfs_bio.c | |
parent | ed742a54c4d82222ed831fc8e7321cf7149ed8ed (diff) | |
download | FreeBSD-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/nfsclient/nfs_bio.c')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 7df0531..02fdd00 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -215,8 +215,6 @@ nfs_getpages(struct vop_getpages_args *ap) nextoff = toff + PAGE_SIZE; m = pages[i]; - m->flags &= ~PG_ZERO; - if (nextoff <= size) { /* * Read operation filled an entire page |