aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>1999-08-17 04:02:34 +0000
committerAlan Cox <alc@FreeBSD.org>1999-08-17 04:02:34 +0000
commit2c28a1054036c739c1de7ca1009bc4d3e2a56a67 (patch)
treeb6e0b87c9518871811370a828c6a49022e2331fa /sys/nfsclient
parent0e568d4b12f6c094e2e92e6269cac79c0489979b (diff)
downloadsrc-2c28a1054036c739c1de7ca1009bc4d3e2a56a67.tar.gz
src-2c28a1054036c739c1de7ca1009bc4d3e2a56a67.zip
Add the (inline) function vm_page_undirty for clearing the dirty bitmask
of a vm_page. Use it. Submitted by: dillon
Notes
Notes: svn path=/head/; revision=49945
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index 90f19f2a58fb..9d93fed1f9fe 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
- * $Id: nfs_bio.c,v 1.74 1999/06/26 02:46:29 mckusick Exp $
+ * $Id: nfs_bio.c,v 1.75 1999/08/12 18:04:39 dt Exp $
*/
@@ -185,7 +185,7 @@ nfs_getpages(ap)
* Read operation filled an entire page
*/
m->valid = VM_PAGE_BITS_ALL;
- m->dirty = 0;
+ vm_page_undirty(m);
} else if (size > toff) {
/*
* Read operation filled a partial page.
@@ -313,7 +313,7 @@ nfs_putpages(ap)
int nwritten = round_page(count - uio.uio_resid) / PAGE_SIZE;
for (i = 0; i < nwritten; i++) {
rtvals[i] = VM_PAGER_OK;
- pages[i]->dirty = 0;
+ vm_page_undirty(pages[i]);
}
if (must_commit)
nfs_clearcommit(vp->v_mount);