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/miscfs | |
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/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 6 | ||||
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 0a09c66..16d5c74 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devfs_vnops.c,v 1.75 1999/06/26 02:46:17 mckusick Exp $ + * $Id: devfs_vnops.c,v 1.76 1999/08/08 18:42:50 phk Exp $ */ @@ -2004,13 +2004,13 @@ devfs_getpages(struct vop_getpages_args *ap) if (nextoff <= nread) { m->valid = VM_PAGE_BITS_ALL; - m->dirty = 0; + vm_page_undirty(m); } else if (toff < nread) { int nvalid = ((nread + DEV_BSIZE - 1) - toff) & ~(DEV_BSIZE - 1); vm_page_set_validclean(m, 0, nvalid); } else { m->valid = 0; - m->dirty = 0; + vm_page_undirty(m); } if (i != ap->a_reqpage) { diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index dfee711..88ffa58 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/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) { |