diff options
author | alc <alc@FreeBSD.org> | 1999-08-17 04:02:34 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-08-17 04:02:34 +0000 |
commit | 075745f2e2fb52fde8ec60e7f50fb9fac232769b (patch) | |
tree | a5fc4015860f85bfe6e0ecb7123d7262658cb7bd /sys/fs | |
parent | b22fe64f8ad371d067c1d604563e453b9cbdd67d (diff) | |
download | FreeBSD-src-075745f2e2fb52fde8ec60e7f50fb9fac232769b.zip FreeBSD-src-075745f2e2fb52fde8ec60e7f50fb9fac232769b.tar.gz |
Add the (inline) function vm_page_undirty for clearing the dirty bitmask
of a vm_page.
Use it.
Submitted by: dillon
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index dfee711..88ffa58 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95 - * $Id: spec_vnops.c,v 1.95 1999/08/13 16:29:21 phk Exp $ + * $Id: spec_vnops.c,v 1.96 1999/08/14 11:40:45 phk Exp $ */ #include <sys/param.h> @@ -849,7 +849,7 @@ spec_getpages(ap) if (nextoff <= nread) { m->valid = VM_PAGE_BITS_ALL; - m->dirty = 0; + vm_page_undirty(m); } else if (toff < nread) { /* * Since this is a VM request, we have to supply the @@ -859,7 +859,7 @@ spec_getpages(ap) vm_page_set_validclean(m, 0, nread - toff); } else { m->valid = 0; - m->dirty = 0; + vm_page_undirty(m); } if (i != ap->a_reqpage) { |