1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Eliminate an unnecessary clearing of a page's dirty bits in

phys_pager_getpages().
This commit is contained in:
Alan Cox 2009-06-13 20:58:12 +00:00
parent 47f11d9a46
commit 53f55a430f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194126

View File

@ -149,7 +149,8 @@ phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
}
KASSERT(m[i]->valid == VM_PAGE_BITS_ALL,
("phys_pager_getpages: partially valid page %p", m[i]));
m[i]->dirty = 0;
KASSERT(m[i]->dirty == 0,
("phys_pager_getpages: dirty page %p", m[i]));
/* The requested page must remain busy, the others not. */
if (reqpage != i) {
m[i]->oflags &= ~VPO_BUSY;