Eliminate gratuitous clearing of the page's dirty mask.
This commit is contained in:
parent
ec4d3eb88b
commit
cb76946a7f
@ -517,7 +517,8 @@ smbfs_getpages(ap)
|
||||
* Read operation filled an entire page
|
||||
*/
|
||||
m->valid = VM_PAGE_BITS_ALL;
|
||||
vm_page_undirty(m);
|
||||
KASSERT(m->dirty == 0,
|
||||
("smbfs_getpages: page %p is dirty", m));
|
||||
} else if (size > toff) {
|
||||
/*
|
||||
* Read operation filled a partial page.
|
||||
|
@ -209,7 +209,8 @@ nfs_getpages(struct vop_getpages_args *ap)
|
||||
* Read operation filled an entire page
|
||||
*/
|
||||
m->valid = VM_PAGE_BITS_ALL;
|
||||
vm_page_undirty(m);
|
||||
KASSERT(m->dirty == 0,
|
||||
("nfs_getpages: page %p is dirty", m));
|
||||
} else if (size > toff) {
|
||||
/*
|
||||
* Read operation filled a partial page.
|
||||
|
@ -762,7 +762,8 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
|
||||
return VM_PAGER_OK;
|
||||
} else if (reqblock == -1) {
|
||||
pmap_zero_page(m[reqpage]);
|
||||
vm_page_undirty(m[reqpage]);
|
||||
KASSERT(m[reqpage]->dirty == 0,
|
||||
("vnode_pager_generic_getpages: page %p is dirty", m));
|
||||
m[reqpage]->valid = VM_PAGE_BITS_ALL;
|
||||
vm_page_lock_queues();
|
||||
for (i = 0; i < count; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user