summaryrefslogtreecommitdiffstats
path: root/sys/vm/phys_pager.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-06-13 20:58:12 +0000
committeralc <alc@FreeBSD.org>2009-06-13 20:58:12 +0000
commit595149bf9031d68f18bb15236b09e76d0d4abf10 (patch)
treea82355ce014408eb937a11d94eebe03e18ae86ca /sys/vm/phys_pager.c
parent9ec14df4c87905061d1ea0e1a1c3750ee961a7db (diff)
downloadFreeBSD-src-595149bf9031d68f18bb15236b09e76d0d4abf10.zip
FreeBSD-src-595149bf9031d68f18bb15236b09e76d0d4abf10.tar.gz
Eliminate an unnecessary clearing of a page's dirty bits in
phys_pager_getpages().
Diffstat (limited to 'sys/vm/phys_pager.c')
-rw-r--r--sys/vm/phys_pager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/phys_pager.c b/sys/vm/phys_pager.c
index a26dd51..fe50ff8 100644
--- a/sys/vm/phys_pager.c
+++ b/sys/vm/phys_pager.c
@@ -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;
OpenPOWER on IntegriCloud