Eliminate gratuitous clearing of the page's dirty mask.

This commit is contained in:
Alan Cox 2009-05-12 05:49:02 +00:00
parent 24df53962e
commit 12aa4fdca9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192010
3 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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++)