diff options
author | alc <alc@FreeBSD.org> | 2009-05-12 05:49:02 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-05-12 05:49:02 +0000 |
commit | cb76946a7ff6ac39fa85f18fff89bcb733b826b7 (patch) | |
tree | f8609f3c8ead76666e7c056f178b5ee92eb8ef8a /sys/vm | |
parent | ec4d3eb88b069d0a5885206e76d5f8063d97b716 (diff) | |
download | FreeBSD-src-cb76946a7ff6ac39fa85f18fff89bcb733b826b7.zip FreeBSD-src-cb76946a7ff6ac39fa85f18fff89bcb733b826b7.tar.gz |
Eliminate gratuitous clearing of the page's dirty mask.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vnode_pager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 3d6909b..cf9dcb1 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -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++) |