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/nfsclient | |
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/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 0d1f3fa..e60a201 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -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. |