Eliminate gratuitous clearing of the page's dirty mask.
This commit is contained in:
parent
24df53962e
commit
12aa4fdca9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192010
@ -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…
Reference in New Issue
Block a user